Package org.xmlsoap.schemas.ws.x2003.x03.addressing

Examples of org.xmlsoap.schemas.ws.x2003.x03.addressing.EndpointReferenceDocument$Factory


            fullMsgBodyElem = messageWithoutNotify;
         }

         // build the full SOAP envelope of the notification message
         EndpointReferenceType epr = rpDoc.getConsumerReference(  );

         LOG.debug( MSG.getMessage( Keys.EMITTING_MESSAGE, epr ) );
         LOG.debug( fullMsgBodyElem );
         SOAPMessage msg = buildSOAPMessage( fullMsgBodyElem, epr );
View Full Code Here


        XmlObject[] childElems = XmlBeanUtils.getChildElements( m_propsDoc, elemName );
        assertEquals( 2, childElems.length );
        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

        XmlBeanUtils.addChildElement( m_propsDoc, elemName );
        XmlObject[] childElems = XmlBeanUtils.getChildElements( m_propsDoc, elemName );
        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

    * @param endpointRef a WS-Addressing EndpointReference instance.
    * @return an instance of the corresponding XmlBeans generated EndpointReferenceType
    */
   public static EndpointReferenceType getXLMBeanEPR( org.apache.axis.message.addressing.EndpointReference endpointRef )
   {
      EndpointReferenceType endpointReference = EndpointReferenceType.Factory.newInstance(  );

      AttributedURI         attrURI = endpointReference.addNewAddress(  );
      attrURI.setStringValue( endpointRef.getAddress(  ).toString(  ) );

      AttributedQName attrQname = endpointReference.addNewPortType(  );
      attrQname.setQNameValue( endpointRef.getPortType(  ) );

      org.xmlsoap.schemas.ws.x2003.x03.addressing.ReferencePropertiesType endpointPropType =
         endpointReference.addNewReferenceProperties(  );
      org.apache.axis.message.addressing.ReferencePropertiesType          axisPropType =
         endpointRef.getProperties(  );
      SOAPElement[]                                                       anyArray = axisPropType.get_any(  );
      XmlBeansUtils.setEPRReferenceProperties( endpointPropType, anyArray );
      ServiceNameType serviceName = endpointReference.addNewServiceName(  );
      serviceName.setPortName( endpointRef.getServiceName(  ).getLocalPart(  ) );

      return endpointReference;
   }
View Full Code Here

   public void testBlockSizeSubscribe(  )
   throws Exception
   {
      TopicDocument         topic     = createBlockSizeTopic(  );
      SubscriptionRequest   sr        = createSubscriptionRequest( topic );
      EndpointReferenceType subMgrEpr = null;

      subMgrEpr = m_notificationManager.subscribe( sr );

      // Test Address Value
      testAddress( subMgrEpr );
View Full Code Here

   public void testManufacturerSubscribe(  )
   throws Exception
   {
      TopicDocument         topic     = createManufacturerTopic(  );
      SubscriptionRequest   sr        = createSubscriptionRequest( topic );
      EndpointReferenceType subMgrEpr = null;

      subMgrEpr = m_notificationManager.subscribe( sr );

      // Test Address Value
      testAddress( subMgrEpr );
View Full Code Here

   throws Exception
   {
      TopicDocument topic = createMuwsResourceStateTopic(  );
      ;
      SubscriptionRequest   sr        = createSubscriptionRequest( topic );
      EndpointReferenceType subMgrEpr = null;

      subMgrEpr = m_notificationManager.subscribe( sr );

      testAddress( subMgrEpr );
View Full Code Here

   }

   private SubscriptionRequest createSubscriptionRequest( TopicDocument topic )
   throws URISyntaxException
   {
      EndpointReferenceType consumer        = EndpointReferenceType.Factory.newInstance(  );
      Calendar              terminationTime = Calendar.getInstance(  );
      terminationTime.add( Calendar.HOUR, 1 ); // expire this subscription in 1 hour
      SubscriptionRequest sr =
         new SubscriptionRequestImpl( consumer, topic, null,
                                      new URI( TopicsConstants.DIALECT_TOPIC_EXPRESSION_SIMPLE ), null,
View Full Code Here

      Calendar termination = Calendar.getInstance(  );
      termination.set( 2099, Calendar.JANUARY, 1 );
      sub.getResourceProps(  ).setTerminationTime( termination );

      // define a mock consumer EPR
      EndpointReferenceType consumer = sub.getResourceProps(  ).getConsumerReference(  );
      AttributedURI         uri = consumer.addNewAddress(  );
      uri.setStringValue( "http://consumer/" + url_num );
      consumer.setAddress( uri );

      return sub;
   }
View Full Code Here

   public Subscription( String              id,
                        SubscriptionRequest subRequest )
   {
      this( id, (SubscriptionManagerRPDocument) null );

      EndpointReferenceType requestConsumer        = subRequest.getConsumer(  );
      TopicExpressionType   requestTopic           = subRequest.getTopic(  );
      boolean               requestUseNotify       = subRequest.isUseNotify(  );
      Calendar              requestTerminationTime = subRequest.getInitialTerminationTime(  );

      SubscriptionManagerRP rp = m_resourceProps.getSubscriptionManagerRP(  );
View Full Code Here

TOP

Related Classes of org.xmlsoap.schemas.ws.x2003.x03.addressing.EndpointReferenceDocument$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.