Package org.xmlsoap.schemas.ws.x2004.x08.addressing

Examples of org.xmlsoap.schemas.ws.x2004.x08.addressing.AttributedURI$Factory


            /*----------------- MOWS EndpointIdentification props -----------------*/
            resourceProperty = resourcePropertySet.get(WeatherstationPropertyQNames.ENDPOINTREFERENCE);
            EndpointReferenceDocument endpointReferenceDocument = EndpointReferenceDocument.Factory.newInstance();
            EndpointReferenceType endpointReferenceType = endpointReferenceDocument.addNewEndpointReference();//temporary
            AttributedURI attributedURI = endpointReferenceType.addNewAddress();
            attributedURI.setStringValue(InteropConstants.SERVICES_URL + "/" + InteropConstants.BLACKBERRY_SERVICE_NAME);
            resourceProperty.add(endpointReferenceDocument);
            resourceProperty.addChangeListener(mowsIdentificationCapability);

            resourceProperty = resourcePropertySet.get(WeatherstationPropertyQNames.ENDPOINTDESCRIPTIONS);
            EndpointDescriptionsDocument endpointDescriptionsDocument = EndpointDescriptionsDocument.Factory.newInstance();
View Full Code Here


      Header                                                 header     = envelope.addNewHeader(  );
      XmlObject                                              toElem;
      XmlObject                                              actionElem;
      org.xmlsoap.schemas.ws.x2004.x08.addressing.ToDocument toDoc =
         org.xmlsoap.schemas.ws.x2004.x08.addressing.ToDocument.Factory.newInstance(  );
      AttributedURI                                          attributedURI = toDoc.addNewTo(  );
      attributedURI.setStringValue( address );
      toElem = toDoc;
      org.xmlsoap.schemas.ws.x2004.x08.addressing.ActionDocument actionDoc =
         org.xmlsoap.schemas.ws.x2004.x08.addressing.ActionDocument.Factory.newInstance(  );
      AttributedURI                                              actionType = actionDoc.addNewAction(  );
      actionType.setStringValue( MetadataExchangeConstants.ACTION_GET_REQUEST );
      actionElem = actionDoc;

      XmlBeanUtils.addChildElement( header, toElem );
      XmlBeanUtils.addChildElement( header, actionElem );
      if ( endpointReferenceType.getReferenceProperties(  ) != null )
View Full Code Here

    }

    private void setAddressingHeaders(Header header, String url)
    {
        XmlObject[] childElements = XmlBeanUtils.getChildElements(header, new QName("http://schemas.xmlsoap.org/ws/2004/08/addressing", "To") );
        AttributedURI childElement = (AttributedURI) childElements[0];
        childElement.setStringValue(url);
    }
View Full Code Here

    private static EndpointReference createEpr(String filesystemUrl)
    {
        XmlBeansEndpointReference epr = null;
        try
        {
            EndpointReferenceDocument eprdoc = (EndpointReferenceDocument) XmlObject.Factory.parse(new URL(filesystemUrl));
            epr = new XmlBeansEndpointReference(eprdoc.getEndpointReference());
        }
        catch (Exception e)
        {
            e.printStackTrace();
        }
View Full Code Here

    * @return DOCUMENT_ME
    */
   public EndpointReferenceType getEprForResource( ResourceKey key,
                                                   String      serviceUrl )
   {
      EndpointReferenceDocument eprDoc  = EndpointReferenceDocument.Factory.newInstance(  );
      EndpointReferenceType     epr     = eprDoc.addNewEndpointReference(  );
      AttributedURI             address = epr.addNewAddress(  );
      address.setStringValue( serviceUrl + "/" +SERVICE_NAME );
      ReferencePropertiesType refProps = epr.addNewReferenceProperties(  );

      XmlObject               xmlObject = XmlBeanUtils.addChildElement( refProps,
View Full Code Here


    public EndpointReferenceType getEprForResource( ResourceKey key,
                                                   String      serviceUrl )
   {
      EndpointReferenceDocument eprDoc  = EndpointReferenceDocument.Factory.newInstance(  );
      EndpointReferenceType     epr     = eprDoc.addNewEndpointReference(  );
      AttributedURI             address = epr.addNewAddress(  );
      address.setStringValue( serviceUrl + "/" +SERVICE_NAME );
      ReferencePropertiesType refProps = epr.addNewReferenceProperties(  );

      XmlObject               xmlObject = XmlBeanUtils.addChildElement( refProps,
View Full Code Here


    public EndpointReferenceType getEprForResource( ResourceKey key,
                                                   String      serviceUrl )
   {
      EndpointReferenceDocument eprDoc  = EndpointReferenceDocument.Factory.newInstance(  );
      EndpointReferenceType     epr     = eprDoc.addNewEndpointReference(  );
      AttributedURI             address = epr.addNewAddress(  );
      address.setStringValue( serviceUrl + "/" +SERVICE_NAME );
      ReferencePropertiesType refProps = epr.addNewReferenceProperties(  );

      XmlObject               xmlObject = XmlBeanUtils.addChildElement( refProps,
View Full Code Here

    * @return DOCUMENT_ME
    */
   public EndpointReferenceType getEprForResource( ResourceKey key,
                                                   String      serviceUrl )
   {
      EndpointReferenceDocument eprDoc  = EndpointReferenceDocument.Factory.newInstance(  );
      EndpointReferenceType     epr     = eprDoc.addNewEndpointReference(  );
      AttributedURI             address = epr.addNewAddress(  );
      address.setStringValue( serviceUrl + "/" +SERVICE_NAME );
      ReferencePropertiesType refProps = epr.addNewReferenceProperties(  );

      XmlObject               xmlObject = XmlBeanUtils.addChildElement( refProps,
View Full Code Here

    private ResourceStub m_resource;

    protected void setUp() throws Exception
    {
        super.setUp();
        EndpointReferenceDocument weatherStationEprDoc = getEndpointReference( new URL( WEATHER_STATION_EPR_URL ) );
        if ( DEBUG ) { System.out.println( "*** Using Weather Station EPR:\n" + weatherStationEprDoc ); }
        m_service = new ServiceStub( new URL( WEATHER_STATION_URL ) );
        m_resource = new ResourceStub( new XmlBeansEndpointReference( weatherStationEprDoc.getEndpointReference() ) );
    }
View Full Code Here

  /* (non-Javadoc)
   * @see org.apache.interop.common.EprProvider#getEpr()
   */
  public EndpointReference getEpr(String endpointName) throws XmlException, IOException {
    URL eprURL = new URL(jTextFieldUrl.getText()+"/"+endpointName);
    EndpointReferenceDocument eprDoc=getEndpointReference(eprURL);
    XmlBeansEndpointReference epr=new XmlBeansEndpointReference(eprDoc.getEndpointReference());
    return epr;
  }
View Full Code Here

TOP

Related Classes of org.xmlsoap.schemas.ws.x2004.x08.addressing.AttributedURI$Factory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.