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

Examples of org.xmlsoap.schemas.ws.x2003.x03.addressing.AttributedURI$Factory


      XmlObject epr = null;
      if ( ( namespace != null ) && ( m_address != null ) )
      {
         if ( org.apache.ws.addressing.v2003_03.AddressingConstants.NSURI_ADDRESSING_SCHEMA.equals( namespace ) )
         {
            EndpointReferenceType endpointReferenceType = build2003_03_EPR(  );
            epr = endpointReferenceType;
         }
         else if ( org.apache.ws.addressing.v2004_08.AddressingConstants.NSURI_ADDRESSING_SCHEMA.equals( namespace ) )
         {
            org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType endpointReferenceType =
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(  );
         if ( m_serviceQName != null )
         {
            serviceNameType.setQNameValue( m_serviceQName );
         }

         serviceNameType.setPortName( m_servicePortName );
      }

      if ( m_refProps != null )
      {
         ReferencePropertiesType refPropsType = endpointReferenceType.addNewReferenceProperties(  );
         addToHolderType( refPropsType, m_refProps );
      }

      return endpointReferenceType;
   }
View Full Code Here

      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

      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

      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

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

   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

TOP

Related Classes of org.xmlsoap.schemas.ws.x2003.x03.addressing.AttributedURI$Factory

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.