Examples of ReferencePropertiesType


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

         {
            throw new DestroyResourceFaultException( getNamespaceSet(  ),
                                                     "Attempt to destroy Resource of unknown type" );
         }

         ReferencePropertiesType refProps =
            requestDoc.getDestroyResource(  ).getDestroyResourceParams(  ).getEndpointReference(  )
                      .getReferenceProperties(  );

         boolean                 found = false;
         for ( int i = 0; i < resourceIDQNames.length; i++ )
View Full Code Here

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

         QName[]           resourceIDQNames = aHome.getResourcesKeyNameQnames(  );

         // Assume that the first partici[pant in the relationship own the relationship
         // then the remove relationship will be dispatched to the resource identified
         // in the first participant.
         ReferencePropertiesType refProp =
            requestDoc.getRemoveRelationship(  ).getRelationship(  ).getParticipantArray( 0 )
                      .getManageabilityEndpointReferenceArray( 0 ).getReferenceProperties(  );

         boolean                 found = false;
         for ( int i = 0; i < resourceIDQNames.length; i++ )
View Full Code Here

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

      responseDocument.addNewSetRelationshipResponse(  );
      try
      {
         ResourceadminHome       aHome            = (ResourceadminHome) getResourceContext().getResourceHome(  );
         QName[]                 resourceIDQNames = aHome.getResourcesKeyNameQnames(  );
         ReferencePropertiesType refProp          =
            requestDoc.getSetRelationship(  ).getRelationshipFrom(  ).getParticipant(  )
                      .getManageabilityEndpointReferenceArray( 0 ).getReferenceProperties(  );

         boolean                 found = false;
         for ( int i = 0; i < resourceIDQNames.length; i++ )
View Full Code Here

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

        SubscribeDocument.Subscribe s = sdom.addNewSubscribe();
       
        //create notifyTo EPR
        EndpointReferenceType nepr = (EndpointReferenceType)((XmlObjectWrapper)notificationConsumer.getEPR()).getXmlObject();
        //add ReferenceProperties
        ReferencePropertiesType refProps = nepr.addNewReferenceProperties();
        XmlObject xmlObject = XmlBeanUtils.addChildElement( refProps, ls.getResourceKey().getName());
        XmlCursor xmlCursor = xmlObject.newCursor();
        xmlCursor.setTextValue(ls.getResourceKey().getValue().toString());
        xmlCursor.dispose();
        //notifications are send to:
View Full Code Here

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

   {
      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(  ) );
         XmlBeanUtils.setValue( xmlObj,
View Full Code Here

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

         {
            throw new DestroyResourceFaultException( getNamespaceSet(  ),
                                                     "Try to destroy Resource of unknown type " );
         }

         ReferencePropertiesType refProp =
            requestDoc.getDestroyResource(  ).getDestroyResourceParams(  ).getEndpointReference(  )
                      .getReferenceProperties(  );

         boolean                 found = false;
         for ( int i = 0; i < resourceIDQNames.length; i++ )
View Full Code Here

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

        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();
View Full Code Here

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

         QName[]           resourceIDQNames = aHome.getResourcesKeyNameQnames(  );

         // Assume that the first partici[pant in the relationship own the relationship
         // then the remove relationship will be dispatched to the resource identified
         // in the first participant.
         ReferencePropertiesType refProp =
            requestDoc.getRemoveRelationship(  ).getRelationship(  ).getParticipantArray( 0 )
                      .getManageabilityEndpointReferenceArray( 0 ).getReferenceProperties(  );

         boolean                 found = false;
         for ( int i = 0; i < resourceIDQNames.length; i++ )
View Full Code Here

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

         responseDocument.addNewSetRelationshipResponse(  );
      try
      {
         ResourceadminHome       aHome            = (ResourceadminHome) getResourceHome(  );
         QName[]                 resourceIDQNames = aHome.getResourcesKeyNameQnames(  );
         ReferencePropertiesType refProp          =
            requestDoc.getSetRelationship(  ).getRelationshipFrom(  ).getParticipant(  )
                      .getManageabilityEndpointReferenceArray( 0 ).getReferenceProperties(  );

         boolean                 found = false;
         for ( int i = 0; i < resourceIDQNames.length; i++ )
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.