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

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


   {
      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


         {
            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

        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

         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

         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

   * @throws FaultException
   *
   */
  public void updateWsEpr() throws FaultException {
    XmlObject[] refreshDocArry = m_ResourceConfig.getResourceProperty(weatherStationReferenceQname);
    EndpointReferenceTypeImpl refreshDoc = (EndpointReferenceTypeImpl)refreshDocArry[0];
   
    if(m_ws!=null){
      m_ws.deleteObserver(m_messageObserver);     
    }
    m_ws = new ResourceStub(new XmlBeansEndpointReference(refreshDoc));
View Full Code Here

      XmlCursor               xmlCursor = xmlObject.newCursor(  );
      xmlCursor.setTextValue( String.valueOf( ls.getID(  ) ) );
      xmlCursor.dispose(  );

      //notifications are send to:
      DeliveryType delivery = s.addNewDelivery(  );
      delivery.setNotifyTo( nepr );
      if ( UseNotify == true )
      {
         delivery.setMode( WRAPPED_MODE_URI );
      }

      //create endto EPR
      EndpointReferenceType eepr =
         (EndpointReferenceType) ( (XmlObjectWrapper) subscriptionEndConsumer.getEPR(  ) ).getXmlObject(  );
View Full Code Here

        XmlObject xmlObject = XmlBeanUtils.addChildElement( refProps, ls.getResourceKey().getName());
        XmlCursor xmlCursor = xmlObject.newCursor();
        xmlCursor.setTextValue(ls.getResourceKey().getValue().toString());
        xmlCursor.dispose();
        //notifications are send to:
        DeliveryType delivery = s.addNewDelivery();
        delivery.setNotifyTo(nepr);
        if(UseNotify==true){
            delivery.setMode(WRAPPED_MODE_URI);
        }

       
        //create endto EPR
        EndpointReferenceType eepr = (EndpointReferenceType)((XmlObjectWrapper)subscriptionEndConsumer.getEPR()).getXmlObject();
View Full Code Here

      //subscription ends are send to:
      s.setEndTo( eepr );

      //TODO check Calendar serializing
      ExpirationType expires = ExpirationType.Factory.newInstance(  );
      expires.setObjectValue( initialTerminationTime );
      s.setExpires( expires );

      //TODO multiple filters
      //XPathFilter
      if ( xf != null )
View Full Code Here

        eepr.setReferenceProperties(refProps);
        //subscription ends are send to:
        s.setEndTo(eepr);
       
        //TODO check Calendar serializing
        ExpirationType expires = ExpirationType.Factory.newInstance();
        expires.setObjectValue(initialTerminationTime);
        s.setExpires(expires);
       
        //TODO multiple filters
        //XPathFilter
        if(xf!=null){
View Full Code Here

TOP

Related Classes of org.xmlsoap.schemas.ws.x2004.x08.addressing.MessageIDDocument$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.