Example usage for javax.xml.soap SOAPConstants URI_SOAP_1_2_ROLE_ULTIMATE_RECEIVER

List of usage examples for javax.xml.soap SOAPConstants URI_SOAP_1_2_ROLE_ULTIMATE_RECEIVER

Introduction

In this page you can find the example usage for javax.xml.soap SOAPConstants URI_SOAP_1_2_ROLE_ULTIMATE_RECEIVER.

Prototype

String URI_SOAP_1_2_ROLE_ULTIMATE_RECEIVER

To view the source code for javax.xml.soap SOAPConstants URI_SOAP_1_2_ROLE_ULTIMATE_RECEIVER.

Click Source Link

Document

The URI identifying the ultimate receiver of the SOAP 1.2 message.

Usage

From source file:org.apache.axis2.jaxws.handler.SoapMessageContext.java

public Set<String> getRoles() {
    // TODO implement better.  We should be doing smarter checking of the header,
    // especially for the Ultimate receiver actor/role

    /*//from w w  w .ja va  2s .  co  m
     * JAVADOC to help get this implemented correctly:
     * 
     * Gets the SOAP actor roles associated with an execution of the handler
     * chain. Note that SOAP actor roles apply to the SOAP node and are
     * managed using SOAPBinding.setRoles and SOAPBinding.getRoles. Handler
     * instances in the handler chain use this information about the SOAP
     * actor roles to process the SOAP header blocks. Note that the SOAP
     * actor roles are invariant during the processing of SOAP message
     * through the handler chain.
     */

    HashSet<String> roles = new HashSet<String>(3);
    // JAX-WS 10.1.1.1 defaults:
    // SOAP 1.1
    roles.add(SOAPConstants.URI_SOAP_ACTOR_NEXT);
    // SOAP 1.2
    roles.add(SOAPConstants.URI_SOAP_1_2_ROLE_ULTIMATE_RECEIVER);
    roles.add(SOAPConstants.URI_SOAP_1_2_ROLE_NEXT);
    return roles;
}