Package org.xmlsoap.schemas.ws._2003._03.addressing

Examples of org.xmlsoap.schemas.ws._2003._03.addressing.AttributedURI


    */
   public static EndpointReferenceType getXLMBeanEPR( org.apache.axis.message.addressing.EndpointReference endpointRef )
   {
      EndpointReferenceType endpointReference = EndpointReferenceType.Factory.newInstance(  );

      AttributedURI         attrURI = endpointReference.addNewAddress(  );
      attrURI.setStringValue( endpointRef.getAddress(  ).toString(  ) );

      AttributedQName attrQname = endpointReference.addNewPortType(  );
      attrQname.setQNameValue( endpointRef.getPortType(  ) );

      org.xmlsoap.schemas.ws.x2003.x03.addressing.ReferencePropertiesType endpointPropType =
View Full Code Here


      termination.set( 2099, Calendar.JANUARY, 1 );
      sub.getResourceProps(  ).setTerminationTime( termination );

      // define a mock consumer EPR
      EndpointReferenceType consumer = sub.getResourceProps(  ).getConsumerReference(  );
      AttributedURI         uri = consumer.addNewAddress(  );
      uri.setStringValue( "http://consumer/" + url_num );
      consumer.setAddress( uri );

      return sub;
   }
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

{

    public void testBuildingNotificationMessages() throws SchemaViolationException
    {
        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
        {
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 );
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 );
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

        envelope.addNewBody();
        Header header = envelope.addNewHeader();
        XmlObject toElem;
        XmlObject actionElem;
        org.xmlsoap.schemas.ws.x2004.x08.addressing.ToDocument toDoc = org.xmlsoap.schemas.ws.x2004.x08.addressing.ToDocument.Factory.newInstance();
        AttributedURI attributedURI = toDoc.addNewTo();
        attributedURI.setStringValue(address);
        toElem = toDoc;
        org.xmlsoap.schemas.ws.x2004.x08.addressing.ActionDocument actionDoc = org.xmlsoap.schemas.ws.x2004.x08.addressing.ActionDocument.Factory.newInstance();
        AttributedURI actionType = actionDoc.addNewAction();
        actionType.setStringValue( MetadataExchangeConstants.ACTION_GET );
        actionElem = actionDoc;

        XmlBeanUtils.addChildElement( header, toElem );
        XmlBeanUtils.addChildElement( header, actionElem );
        if (endpointReferenceType.getReferenceProperties() != null)
View Full Code Here

    }

    private void setAddressingHeaders(Header header, String url)
    {
        XmlObject[] childElements = XmlBeanUtils.getChildElements(header, new QName("http://schemas.xmlsoap.org/ws/2004/08/addressing", "To") );
        AttributedURI childElement = (AttributedURI) childElements[0];
        childElement.setStringValue(url);
    }
View Full Code Here

   public EndpointReferenceType getEprForResource( ResourceKey key,
                                                   String      serviceUrl )
   {
      EndpointReferenceDocument eprDoc  = EndpointReferenceDocument.Factory.newInstance(  );
      EndpointReferenceType     epr     = eprDoc.addNewEndpointReference(  );
      AttributedURI             address = epr.addNewAddress(  );
      address.setStringValue( serviceUrl + "/" +SERVICE_NAME );
      ReferencePropertiesType refProps = epr.addNewReferenceProperties(  );

      XmlObject               xmlObject = XmlBeanUtils.addChildElement( refProps,
                                                                        key.getName(  ) );
      XmlBeanUtils.setValue( xmlObject,
View Full Code Here

TOP

Related Classes of org.xmlsoap.schemas.ws._2003._03.addressing.AttributedURI

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.