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

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


      return responseDoc;
   }

   private SubscribeResponseDocument buildSubscribeResponseDocument( EndpointReference subscriptionEPR )
   {
      EndpointReferenceType                       subscriptionRefType;
      SubscribeResponseDocument                   subscribeResponseDoc =
         SubscribeResponseDocument.Factory.newInstance(  );
      SubscribeResponseDocument.SubscribeResponse subscribeResponse =
         subscribeResponseDoc.addNewSubscribeResponse(  );
      subscriptionRefType = (EndpointReferenceType) ( (XmlObjectWrapper) subscriptionEPR ).getXmlObject(  );
View Full Code Here


         ConsumerReferenceDocument consumerRefDoc = ConsumerReferenceDocument.Factory.newInstance(  );
         consumerRefDoc.addNewConsumerReference(  );
         prop.add( consumerRefDoc );
      }

      EndpointReferenceType consumerRef    = (EndpointReferenceType) prop.get( 0 );
      EndpointReferenceType newConsumerRef =
         (EndpointReferenceType) ( (XmlBeansEndpointReference) m_subscription.getConsumerReference(  ) )
                  .getXmlObject( AddressingConstants.NSURI_ADDRESSING_SCHEMA );
      consumerRef.set( newConsumerRef );
      return prop;
   }
View Full Code Here

    * @throws CallbackFailedException DOCUMENT_ME
    */
   public void updateProperty( Object[] propElems )
   throws CallbackFailedException
   {
      EndpointReferenceType consumerRef = (EndpointReferenceType) propElems[0];
      m_subscription.setConsumerReference( new XmlBeansEndpointReference( consumerRef ) );
   }
View Full Code Here

   private void addReferencePropertyHeaders( SOAPHeader            header,
                                             EndpointReferenceType consumerEPR )
   throws Exception
   {
      SOAPHeaderElement       headerElem;
      ReferencePropertiesType props = consumerEPR.getReferenceProperties(  );
      if ( props != null )
      {
         XmlCursor cursor          = props.newCursor(  );
         boolean   hasAnotherChild = cursor.toFirstChild(  );
         while ( hasAnotherChild )
         {
            // TODO: *SJC* the below logic should handle refProps that are complexTypes..
            // Best way to do may be to build SOAPMessage as XmlBean and use MessageFactory.createMessage(..) to construct using the InputStream
View Full Code Here

        {
        ServiceNameType serviceNameType = endpointReferenceType.addNewServiceName();
        serviceNameType.setPortName(m_servicePortName);
        }

        ReferencePropertiesType referencePropertiesType = endpointReferenceType.addNewReferenceProperties();

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

        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

        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

      localPart    = "Action";
      h            = header.addHeaderElement( factory.createName( localPart, "ns2", namespace ) );
      h.addTextNode( value );

      ReferencePropertiesType props  = consumerEPR.getReferenceProperties(  );
      XmlCursor               cursor = props.newCursor(  );

      boolean                 haveChild = cursor.toFirstChild(  );

      while ( haveChild )
      {
View Full Code Here

            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++ )
               {
                  XmlCursor xmlCursor = props.newCursor(  );
                  xmlCursor.toEndToken(  );
                  xmlCursor.insertNamespace( CONSTANT_NAMESPACE_PREFIX,
                                             propsArray[i].getNamespaceURI(  ) );
                  xmlCursor.insertElementWithText( new QName( propsArray[i].getNamespaceURI(  ),
                                                              propsArray[i].getLocalName(  ),
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

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.