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

Examples of org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceDocument


        envelope.addNewBody();
        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 );
        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

   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,
                                                                        key.getName(  ) );
      XmlBeanUtils.setValue( xmlObject,
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,
                                                                        key.getName(  ) );
      XmlBeanUtils.setValue( xmlObject,
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,
                                                                        key.getName(  ) );
      XmlBeanUtils.setValue( xmlObject,
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,
                                                                        key.getName(  ) );
      XmlBeanUtils.setValue( xmlObject,
View Full Code Here

    this.listenerURL=listenerURL;
    //this.topicQName=topicQName;
    this.observer=observer;
    RelationshipParticipantType participant = relationship.getParticipantArray(1);
    EndpointReferenceType eprt = participant.getManageabilityEndpointReferenceArray(0);
    AttributedURI eprtAddr = eprt.getAddress();
    String addr = eprtAddr.getStringValue();
    addr=addr.replaceAll("192\\.168\\.0\\.20","12\\.35\\.246\\.160");
    eprtAddr.setStringValue(addr);
    wsEpr=(EndpointReference)new XmlBeansEndpointReference(eprt);
    getNameFromEpr();   
    try {
      requestNotificationFromEpr();
    } catch (FaultException e) {
View Full Code Here

            /*----------------- 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

                                                  String      serviceUrl,
                                                  String      serviceName )
   {
      EndpointReferenceDocument eprD    = EndpointReferenceDocument.Factory.newInstance(  );
      EndpointReferenceType     eprT    = eprD.addNewEndpointReference(  );
      AttributedURI             address = eprT.addNewAddress(  );
      address.setStringValue( serviceUrl + "/" + serviceName );
      ReferencePropertiesType refPropType = eprT.addNewReferenceProperties(  );
      if ( key != null )
      {
         XmlObject xmlObj = XmlBeanUtils.addChildElement( refPropType,
                                                          key.getName(  ) );
View Full Code Here

    {
        GetManageabilityReferencesResponseDocument getManageabilityReferencesResponseDocument = GetManageabilityReferencesResponseDocument.Factory.newInstance();
        GetManageabilityReferencesResponseDocument.GetManageabilityReferencesResponse getManageabilityReferencesResponse = getManageabilityReferencesResponseDocument.addNewGetManageabilityReferencesResponse();
        QName resourceKeyName = QName.valueOf("{" + WeatherstationPropertyQNames.FCCID.getNamespaceURI() + "}ResourceID");
        EndpointReferenceType endpointReferenceType = getManageabilityReferencesResponse.addNewManageabilityEndpointReference();
        AttributedURI attributedURI = endpointReferenceType.addNewAddress();
        attributedURI.setStringValue(InteropConstants.SERVICES_URL + "/" + InteropConstants.WEATHERSTATION_SERVICE_NAME);
        ReferencePropertiesType referencePropertiesType = endpointReferenceType.addNewReferenceProperties();
        XmlObject key1 = XmlBeanUtils.addChildElement(referencePropertiesType, resourceKeyName);
        XmlBeanUtils.setValue(key1, InteropConstants.WEATHERSTATION_KEY1);

        EndpointReferenceType endpointReferenceType2 = getManageabilityReferencesResponse.addNewManageabilityEndpointReference();
        attributedURI = endpointReferenceType2.addNewAddress();
        attributedURI.setStringValue(InteropConstants.SERVICES_URL + "/" + InteropConstants.WEATHERSTATION_SERVICE_NAME);
        referencePropertiesType = endpointReferenceType2.addNewReferenceProperties();
        key1 = XmlBeanUtils.addChildElement(referencePropertiesType, resourceKeyName);
        XmlBeanUtils.setValue(key1, InteropConstants.WEATHERSTATION_KEY2);

        return getManageabilityReferencesResponseDocument;
View Full Code Here

TOP

Related Classes of org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceDocument

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.