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

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


    private ResourceStub m_resource;

    protected void setUp() throws Exception
    {
        super.setUp();
        EndpointReferenceDocument weatherStationEprDoc = getEndpointReference( new URL( WEATHER_STATION_EPR_URL ) );
        if ( DEBUG ) { System.out.println( "*** Using Weather Station EPR:\n" + weatherStationEprDoc ); }
        m_service = new ServiceStub( new URL( WEATHER_STATION_URL ) );
        m_resource = new ResourceStub( new XmlBeansEndpointReference( weatherStationEprDoc.getEndpointReference() ) );
    }
View Full Code Here


        assertTrue( matchElems[0] instanceof XmlQName );
        XmlQName match = (XmlQName) matchElems[0];
        assertEquals( WeatherstationPropertyQNames.FCCID, match.getQNameValue() );

        // get weather station resource #2
        EndpointReferenceDocument weatherStation2EprDoc = getEndpointReference( new URL( WEATHER_STATION_2_EPR_URL ) );
        ResourceStub resource2 = new ResourceStub(new XmlBeansEndpointReference( weatherStation2EprDoc.getEndpointReference()) ); //resource2

        assertEquals("FCCIDs did not match.", getFCCID(m_resource), getFCCID(resource2));
    }
View Full Code Here

    private ResourceStub m_resource;

    protected void setUp() throws Exception
    {
        super.setUp();
        EndpointReferenceDocument blackberryEprDoc = getEndpointReference( new URL( BLACKBERRY_EPR ) );
        if ( DEBUG ) { System.out.println( "*** Using Blackberry EPR:\n" + blackberryEprDoc ); }
        m_resource = new ResourceStub( new XmlBeansEndpointReference(blackberryEprDoc.getEndpointReference()) );       
    }
View Full Code Here

    private ResourceStub m_resource;

    protected void setUp() throws Exception
    {
        super.setUp();
        EndpointReferenceDocument ipmiServerEprDoc = getEndpointReference( new URL( IPMI_SERVER_EPR ) );
        if ( DEBUG ) { System.out.println( "*** Using IPMI Server EPR:\n" + ipmiServerEprDoc ); }
        m_resource = new ResourceStub( new XmlBeansEndpointReference(ipmiServerEprDoc.getEndpointReference()) );
    }
View Full Code Here

    private ResourceStub m_resource;

    protected void setUp() throws Exception
    {
        super.setUp();
        EndpointReferenceDocument weatherStationEprDoc = getEndpointReference( new URL( WEATHER_STATION_EPR_URL ) );
        if ( DEBUG ) { System.out.println( "*** Using Weather Station EPR:\n" + weatherStationEprDoc ); }
        m_service = new ServiceStub( new URL( WEATHER_STATION_URL ) );
        m_resource = new ResourceStub( new XmlBeansEndpointReference( weatherStationEprDoc.getEndpointReference() ) );
    }
View Full Code Here

        assertTrue( matchElems[0] instanceof XmlQName );
        XmlQName match = (XmlQName) matchElems[0];
        assertEquals( WeatherstationPropertyQNames.FCCID, match.getQNameValue() );

        // get weather station resource #2
        EndpointReferenceDocument weatherStation2EprDoc = getEndpointReference( new URL( WEATHER_STATION_2_EPR_URL ) );
        ResourceStub resource2 = new ResourceStub(new XmlBeansEndpointReference( weatherStation2EprDoc.getEndpointReference()) ); //resource2

        assertEquals("FCCIDs did not match.", getFCCID(m_resource), getFCCID(resource2));
    }
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

      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

    * @throws Exception DOCUMENT_ME
    */
   public void testBuildingNotificationMessages(  )
   throws Exception
   {
      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
      {
         topicExprType =
View Full Code Here

      if ( request.isSetSubscriptionPolicy(  ) )
      {
         subPolicy = request.getSubscriptionPolicy(  );
      }

      EndpointReferenceType subscriptionEPR = null;

      boolean               useNotify        = request.isSetUseNotify(  ) ? request.getUseNotify(  ) : true; // NOTE: we must set the default value ourselves, as XMLBeans does NOT do this for us
      EndpointReference     producerEPR      = getResource(  ).getEndpointReference(  );
      SubscriptionHome      subscriptionHome = null;
      try
View Full Code Here

TOP

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

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.