Example usage for javax.xml.soap SOAPConstants URI_SOAP_1_2_ROLE_NONE

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

Introduction

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

Prototype

String URI_SOAP_1_2_ROLE_NONE

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

Click Source Link

Document

The URI specifying the role None in SOAP 1.2.

Usage

From source file:org.apache.axis2.jaxws.binding.SOAPBinding.java

public void setRoles(Set<String> set) {
    // Validate the values in the set
    if (set != null && !set.isEmpty()) {
        // Throw an exception for setting a role of "none"
        // Per JAXWS 2.0 Sec 10.1.1.1 SOAP Roles, page 116:
        if (set.contains(SOAPConstants.URI_SOAP_1_2_ROLE_NONE)) {
            throw ExceptionFactory.makeWebServiceException(Messages.getMessage("roleValidatioErr"));
        }//from  w ww.  j av  a 2s .  c o m
    }

    roles = addDefaultRoles(set);
}