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

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


      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


     * @return this producer's endpoint reference
     */
    public EndpointReference getEPR()
    {
        EndpointReferenceType epr = EndpointReferenceType.Factory.newInstance();
        AttributedURI attributedURI = AttributedURI.Factory.newInstance();
        attributedURI.setStringValue("http://foo");
        epr.setAddress(attributedURI);
        return new XmlBeansEndpointReference(epr);
    }
View Full Code Here

{

    public void testBuildingNotificationMessages() throws SchemaViolationException
    {
        EndpointReferenceType epr1 = EndpointReferenceType.Factory.newInstance();
        AttributedURI uri = AttributedURI.Factory.newInstance();
        uri.setStringValue("http://consumer");
        epr1.setAddress(uri);
        EndpointReference epr = new XmlBeansEndpointReference(epr1);
        TopicExpressionDocument topicExprType = null;
        try
        {
View Full Code Here

   }

   private EndpointReferenceType build2003_03_EPR(  )
   {
      EndpointReferenceType endpointReferenceType = EndpointReferenceType.Factory.newInstance(  );
      AttributedURI         attributedURI = endpointReferenceType.addNewAddress(  );
      attributedURI.setStringValue( m_address );

      if ( m_portTypeQName != null )
      {
         AttributedQName attributedQName = endpointReferenceType.addNewPortType(  );
         attributedQName.setQNameValue( m_portTypeQName );
View Full Code Here

   }

   private EndpointReferenceType build2003_03_EPR(  )
   {
      EndpointReferenceType endpointReferenceType = EndpointReferenceType.Factory.newInstance(  );
      AttributedURI         attributedURI = endpointReferenceType.addNewAddress(  );
      attributedURI.setStringValue( m_address );

      if ( m_portTypeQName != null )
      {
         AttributedQName attributedQName = endpointReferenceType.addNewPortType(  );
         attributedQName.setQNameValue( m_portTypeQName );
View Full Code Here

    * @return this producer's endpoint reference
    */
   public EndpointReference getEPR(  )
   {
      EndpointReferenceType epr           = EndpointReferenceType.Factory.newInstance(  );
      AttributedURI         attributedURI = AttributedURI.Factory.newInstance(  );
      attributedURI.setStringValue( "http://foo" );
      epr.setAddress( attributedURI );
      return new XmlBeansEndpointReference( epr );
   }
View Full Code Here

        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

        // first test adding to an element that already has children...
        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

        XmlBeanUtils.addChildElement( m_propsDoc, xBean );
        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

        // first test adding to an element that already has children...
        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

TOP

Related Classes of org.xmlsoap.schemas.ws.x2003.x03.addressing.Relationship

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.