Examples of ReferencePropertiesType


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

   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

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

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

        ReferencePropertiesType referencePropertiesType = endpointReferenceType.addNewReferenceProperties();

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

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

        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

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

        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

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

      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

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

            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

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

        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

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

        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

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

    * @throws Exception
    */
   private void testResourceID( EndpointReferenceType subMgrEpr )
   throws Exception
   {
      ReferencePropertiesType props = subMgrEpr.getReferenceProperties(  );
      assertNotNull( props );
      assertFalse( props.isNil(  ) );
      XmlCursor propsCursor = props.newCursor(  );
      propsCursor.toChild( MuseAddressingConstants.REFERENCE_PROP_QNAME_RESOURCE_ID );
      String resourceID = propsCursor.getTextValue(  );

      // The actual Resource ID # will be unique so difficult to test exactly.
      // Just make sure it is of the proper form.
View Full Code Here

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

    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: the below logic should handle refProps that are complexTypes
                SOAPElement soapElem = XmlBeanUtils.toSOAPElement( cursor.getObject() );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.