Examples of ReferencePropertiesType


Examples of org.xmlsoap.schemas.ws.x2003.x03.addressing.ReferencePropertiesType

      {
         ServiceNameType serviceNameType = endpointReferenceType.addNewServiceName(  );
         serviceNameType.setPortName( m_servicePortName );
      }

      ReferencePropertiesType refPropsType = endpointReferenceType.addNewReferenceProperties(  );

      if ( m_referenceProps != null )
      {
         addToProperties( refPropsType, m_referenceProps );
      }
View Full Code Here

Examples of org.xmlsoap.schemas.ws.x2003.x03.addressing.ReferencePropertiesType

         serviceNameType.setPortName( m_servicePortName );
      }

      if ( m_refProps != null )
      {
         ReferencePropertiesType refPropsType = endpointReferenceType.addNewReferenceProperties(  );
         addToHolderType( refPropsType, m_refProps );
      }

      return endpointReferenceType;
   }
View Full Code Here

Examples of org.xmlsoap.schemas.ws.x2003.x03.addressing.ReferencePropertiesType

      assertTrue( childElems[1] instanceof XmlString );

      // now test adding to a childless element...
      EndpointReferenceDocument eprDoc       = EndpointReferenceDocument.Factory.newInstance(  );
      EndpointReferenceType     epr          = eprDoc.addNewEndpointReference(  );
      ReferencePropertiesType   refPropsType = epr.addNewReferenceProperties(  );
      XmlBeanUtils.addChildElement( refPropsType, xBean );
      childElems = XmlBeanUtils.getChildElements( refPropsType, elemName );
      assertEquals( 1, childElems.length );
      assertTrue( childElems[0] instanceof XmlString );
   }
View Full Code Here

Examples of org.xmlsoap.schemas.ws.x2003.x03.addressing.ReferencePropertiesType

      assertEquals( 2, childElems.length );

      // now test adding to a childless element...
      EndpointReferenceDocument eprDoc       = EndpointReferenceDocument.Factory.newInstance(  );
      EndpointReferenceType     epr          = eprDoc.addNewEndpointReference(  );
      ReferencePropertiesType   refPropsType = epr.addNewReferenceProperties(  );
      XmlBeanUtils.addChildElement( refPropsType, elemName );
      childElems = XmlBeanUtils.getChildElements( refPropsType, elemName );
      assertEquals( 1, childElems.length );
   }
View Full Code Here

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

      //create notifyTo EPR
      EndpointReferenceType nepr =
         (EndpointReferenceType) ( (XmlObjectWrapper) notificationConsumer.getEPR(  ) ).getXmlObject(  );

      //add ReferenceProperties
      ReferencePropertiesType refProps  = nepr.addNewReferenceProperties(  );
      XmlObject               xmlObject = XmlBeanUtils.addChildElement( refProps,
                                                                        new QName( "TODO" ) );
      XmlCursor               xmlCursor = xmlObject.newCursor(  );
      xmlCursor.setTextValue( String.valueOf( ls.getID(  ) ) );
      xmlCursor.dispose(  );
View Full Code Here

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

   {
      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,
                             key.getValue(  ).toString(  ) );
View Full Code Here

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

   {
      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,
                             key.getValue(  ).toString(  ) );
View Full Code Here

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

   {
      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,
                             key.getValue(  ).toString(  ) );
View Full Code Here

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

   {
      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,
                             key.getValue(  ).toString(  ) );
View Full Code Here

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

            RelationshipParticipantType relationshipParticipantType = relationshipType.addNewParticipant();
            relationshipParticipantType.setResourceId("urn:" + InteropConstants.WEATHERSTATION_KEY1);
            relationshipParticipantType.setRole("urn://parent");//uri
            EndpointReferenceType manageabilityEndpointReferenceType = relationshipParticipantType.addNewManageabilityEndpointReference();
            manageabilityEndpointReferenceType.addNewAddress().setStringValue(InteropConstants.SERVICES_URL + "/" + InteropConstants.WEATHERSTATION_SERVICE_NAME);
            ReferencePropertiesType referencePropertiesType = manageabilityEndpointReferenceType.addNewReferenceProperties();
            XmlObject key1 = XmlBeanUtils.addChildElement(referencePropertiesType, qName);
            XmlBeanUtils.setValue(key1, InteropConstants.WEATHERSTATION_KEY1);

            RelationshipParticipantType relationshipParticipantType2 = relationshipType.addNewParticipant();
            relationshipParticipantType2.setResourceId("urn:" + InteropConstants.WEATHERSTATION_KEY2);//spec optional
            relationshipParticipantType2.setRole("urn://child1");//uri
            EndpointReferenceType manageabilityEndpointReferenceType2 = relationshipParticipantType.addNewManageabilityEndpointReference();
            manageabilityEndpointReferenceType2.addNewAddress().setStringValue(InteropConstants.SERVICES_URL + "/" + InteropConstants.WEATHERSTATION_SERVICE_NAME);
            ReferencePropertiesType referencePropertiesType2 = manageabilityEndpointReferenceType2.addNewReferenceProperties();
            XmlObject key2 = XmlBeanUtils.addChildElement(referencePropertiesType2, qName);
            XmlBeanUtils.setValue(key2, InteropConstants.WEATHERSTATION_KEY2);

            resourceProperty.add(relationshipDocument);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.