List of usage examples for javax.xml.soap SOAPConstants URI_SOAP_ACTOR_NEXT
String URI_SOAP_ACTOR_NEXT
To view the source code for javax.xml.soap SOAPConstants URI_SOAP_ACTOR_NEXT.
Click Source Link
From source file:org.apache.axis2.jaxws.binding.SOAPBinding.java
private Set<String> addDefaultRoles(Set<String> set) { Set<String> returnSet = set; if (returnSet == null) { returnSet = new HashSet<String>(); }//from ww w . ja va 2 s .c o m // Make sure the defaults for the binding type are in the set // and add them if not. Note that for both SOAP11 and SOAP12, the role of ultimate // reciever can be indicated by the omission of the role attribute. // REVIEW: This is WRONG because the bindingID from the WSDL is not the same value as // SOAPBinding annotation constants. There are other places in the code that have // this same issue I am sure. if (SOAPBinding.SOAP12HTTP_BINDING.equals(bindingId) || SOAPBinding.SOAP12HTTP_MTOM_BINDING.equals(bindingId)) { if (returnSet.isEmpty() || !returnSet.contains(SOAPConstants.URI_SOAP_1_2_ROLE_NEXT)) { returnSet.add(SOAPConstants.URI_SOAP_1_2_ROLE_NEXT); } } else { if (returnSet.isEmpty() || !returnSet.contains(SOAPConstants.URI_SOAP_ACTOR_NEXT)) { returnSet.add(SOAPConstants.URI_SOAP_ACTOR_NEXT); } } return returnSet; }
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 ww w .ja va 2 s. c o 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; }