Package javax.xml.ws.addressing.soap

Examples of javax.xml.ws.addressing.soap.SOAPAddressingBuilder.newURI()


      // This OPTIONAL element provides the value for the [destination] property.
      // If this element is NOT present then the value of the [destination]
      // property is "http://www.w3.org/2005/08/addressing/anonymous".
      String to = getOptionalHeaderContent(soapHeader, ADDR.getToQName());     
      if(to!=null)
        setTo(builder.newURI(to));
   
      // Read wsa:From
      // This OPTIONAL element (of type wsa:EndpointReferenceType) provides the value for the [source endpoint] property.
      Element wsaFrom = DOMUtils.getFirstChildElement(soapHeader, ADDR.getFromQName());
      if (wsaFrom != null)
View Full Code Here


      // wsa:Action
      // This REQUIRED element of type xs:anyURI conveys the [action] property.
      // The [children] of this element convey the value of this property.
      String action = getRequiredHeaderContent(soapHeader, ADDR.getActionQName());
      setAction(builder.newURI(action));

      // Read wsa:MessageID
      // This OPTIONAL element (whose content is of type xs:anyURI) conveys the [message id] property.
      String messageID = getOptionalHeaderContent(soapHeader, ADDR.getMessageIDQName());
      if(messageID!=null) setMessageID(builder.newURI(messageID));
View Full Code Here

      setAction(builder.newURI(action));

      // Read wsa:MessageID
      // This OPTIONAL element (whose content is of type xs:anyURI) conveys the [message id] property.
      String messageID = getOptionalHeaderContent(soapHeader, ADDR.getMessageIDQName());
      if(messageID!=null) setMessageID(builder.newURI(messageID));

      // Read wsa:RelatesTo
      // This OPTIONAL attribute conveys the relationship type as an IRI.
      // When absent, the implied value of this attribute is "http://www.w3.org/2005/08/addressing/reply".
      Iterator itRelatesTo = DOMUtils.getChildElements(soapHeader, ADDR.getRelatesToQName());
View Full Code Here

      log.info("handleRequest" + this);
      try
      {
         SOAPAddressingBuilder builder = (SOAPAddressingBuilder)SOAPAddressingBuilder.getAddressingBuilder();
         SOAPAddressingProperties outProps = (SOAPAddressingProperties)builder.newAddressingProperties();
         outProps.setTo(builder.newURI("http://localhost:8080/jaxrpc-addressing-action-rpc/ActionService"));
         outProps.setAction(builder.newURI("urn:wsa-action-bar"));
         msgContext.put(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES_OUTBOUND, outProps);
      }
      catch (URISyntaxException ex)
      {
View Full Code Here

      try
      {
         SOAPAddressingBuilder builder = (SOAPAddressingBuilder)SOAPAddressingBuilder.getAddressingBuilder();
         SOAPAddressingProperties outProps = (SOAPAddressingProperties)builder.newAddressingProperties();
         outProps.setTo(builder.newURI("http://localhost:8080/jaxrpc-addressing-action-rpc/ActionService"));
         outProps.setAction(builder.newURI("urn:wsa-action-bar"));
         msgContext.put(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES_OUTBOUND, outProps);
      }
      catch (URISyntaxException ex)
      {
         throw new IllegalStateException("Cannot handle request", ex);
View Full Code Here

      log.info("handleRequest" + this);
      try
      {
         SOAPAddressingBuilder builder = (SOAPAddressingBuilder)SOAPAddressingBuilder.getAddressingBuilder();
         SOAPAddressingProperties outProps = (SOAPAddressingProperties)builder.newAddressingProperties();
         outProps.setTo(builder.newURI("http://localhost:8080/jaxrpc-addressing-action-rpc/ActionService"));
         outProps.setAction(builder.newURI("urn:wsa-action-bar"));
         msgContext.put(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES_OUTBOUND, outProps);
      }
      catch (URISyntaxException ex)
      {
View Full Code Here

      try
      {
         SOAPAddressingBuilder builder = (SOAPAddressingBuilder)SOAPAddressingBuilder.getAddressingBuilder();
         SOAPAddressingProperties outProps = (SOAPAddressingProperties)builder.newAddressingProperties();
         outProps.setTo(builder.newURI("http://localhost:8080/jaxrpc-addressing-action-rpc/ActionService"));
         outProps.setAction(builder.newURI("urn:wsa-action-bar"));
         msgContext.put(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES_OUTBOUND, outProps);
      }
      catch (URISyntaxException ex)
      {
         throw new IllegalStateException("Cannot handle request", ex);
View Full Code Here

      // This OPTIONAL element provides the value for the [destination] property.
      // If this element is NOT present then the value of the [destination]
      // property is "http://www.w3.org/2005/08/addressing/anonymous".
      String to = getOptionalHeaderContent(soapHeader, ADDR.getToQName());     
      if(to!=null)
        setTo(builder.newURI(to));
   
      // Read wsa:From
      // This OPTIONAL element (of type wsa:EndpointReferenceType) provides the value for the [source endpoint] property.
      Element wsaFrom = DOMUtils.getFirstChildElement(soapHeader, ADDR.getFromQName());
      if (wsaFrom != null)
View Full Code Here

      // The [children] of this element convey the value of this property.
            if (message.getProperty("isRequired") != null && (Boolean)message.getProperty("isRequired"))
            {
               //check the action header only if the required value is true
               String action = getRequiredHeaderContent(soapHeader, ADDR.getActionQName());
               setAction(builder.newURI(action));
            }
            else
            {
               String action = getOptionalHeaderContent(soapHeader, ADDR.getActionQName());
               if (action != null) setAction(builder.newURI(action));
View Full Code Here

               setAction(builder.newURI(action));
            }
            else
            {
               String action = getOptionalHeaderContent(soapHeader, ADDR.getActionQName());
               if (action != null) setAction(builder.newURI(action));
            }

      // Read wsa:MessageID
      // This OPTIONAL element (whose content is of type xs:anyURI) conveys the [message id] property.
      String messageID = getOptionalHeaderContent(soapHeader, ADDR.getMessageIDQName());
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.