Package org.wsI.testing.x2003.x03.log

Examples of org.wsI.testing.x2003.x03.log.Log


    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

    * @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

      else if(m_addressingVersionURI != null && m_address != null)
      {
          if(org.apache.ws.addressing.v2003_03.AddressingConstants.NSURI_ADDRESSING_SCHEMA.equals(m_addressingVersionURI))
          {
              EndpointReferenceType endpointReferenceType = build2003_03_EPR();

              m_xmlObjectEPR = endpointReferenceType;
              epr = endpointReferenceType;
          }
          else if(org.apache.ws.addressing.v2004_08_10.AddressingConstants.NSURI_ADDRESSING_SCHEMA.equals(m_addressingVersionURI))
View Full Code Here

       if(namespace != null && m_address != null)
       {
           if(org.apache.ws.addressing.v2003_03.AddressingConstants.NSURI_ADDRESSING_SCHEMA.equals(namespace))
           {
               EndpointReferenceType endpointReferenceType = build2003_03_EPR();

               m_xmlObjectEPR = endpointReferenceType;
               epr = endpointReferenceType;
           }
           else if(org.apache.ws.addressing.v2004_08_10.AddressingConstants.NSURI_ADDRESSING_SCHEMA.equals(namespace))
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);
        }
        if(m_servicePortName != null)
        {
        ServiceNameType serviceNameType = endpointReferenceType.addNewServiceName();
        serviceNameType.setPortName(m_servicePortName);
        }

        ReferencePropertiesType referencePropertiesType = endpointReferenceType.addNewReferenceProperties();

        if(m_referenceProps != null)
        {
            addToProperties(referencePropertiesType, m_referenceProps);
        }
View Full Code Here

        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

TOP

Related Classes of org.wsI.testing.x2003.x03.log.Log

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.