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

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


        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

   private EndpointReferenceType buildSubscriptionEPR( Subscription subscription )
   throws ClassNotFoundException,
          InstantiationException,
          IllegalAccessException
   {
      EndpointReferenceType returnEPR = EndpointReferenceType.Factory.newInstance(  );

      if ( subscription != null )
      {
         // Find the subscription WSResource in the registry
         WSResource resource =
            RegistrationManagerFactory.getManager(  ).find( SUBSCRIPTION_MANAGER_SERVICE,
                                                            subscription.getSubscriptionId(  ) );

         if ( resource != null )
         {
            EndpointReference subscriptionEPR = resource.getEndpointReference(  );
            AttributedURI     address = returnEPR.addNewAddress(  );
            address.setStringValue( subscriptionEPR.getAddress(  ).toString(  ) );

            // Setup the port type
            AttributedQName portType = returnEPR.addNewPortType(  );
            portType.setQNameValue( QName.valueOf( subscriptionEPR.getPortType(  ).toString(  ) ) );
            ServiceNameType snt = returnEPR.addNewServiceName(  );
            snt.setQNameValue( QName.valueOf( subscriptionEPR.getServiceName(  ).toString(  ) ) );

            // Setup the resource properties.
            ReferencePropertiesType props      = returnEPR.addNewReferenceProperties(  );
            MessageElement[]        propsArray = subscriptionEPR.getProperties(  ).get_any(  );

            if ( propsArray != null )
            {
               for ( int i = 0; i < propsArray.length; i++ )
View Full Code Here

            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

TOP

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