Package com.sun.xml.ws.api
Enum SOAPVersion
- All Implemented Interfaces:
Serializable,Comparable<SOAPVersion>
Version of SOAP (1.1 and 1.2).
This class defines various constants for SOAP 1.1 and SOAP 1.2, and also defines convenience methods to simplify the processing of multiple SOAP versions.
This constant alows you to do:
SOAPVersion version = ...; version.someOp(...);As opposed to:
if(binding is SOAP11) {
doSomeOp11(...);
} else {
doSomeOp12(...);
}
- Author:
- Kohsuke Kawaguchi
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringContent-type.final QName"{nsUri}Client" or "{nsUri}Sender"final QNameSOAP MustUnderstand FaultCode for this SOAP versionfinal QName"{nsUri}Server" or "{nsUri}Receiver"final StringBinding ID for SOAP/HTTP binding of this SOAP version.final StringIf the actor/role attribute is absent, this SOAP version assumes this value.Singleton set that containsimplicitRole.final StringSOAP envelope namespace URI.This represents the roles required to be assumed by SOAP binding implementation.final String"role" (SOAP 1.2) or "actor" (SOAP 1.1)final javax.xml.soap.MessageFactoryDeprecated.final javax.xml.soap.SOAPFactoryDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic SOAPVersionfrom(EnvelopeStyle.Style style) static SOAPVersionstatic SOAPVersionfromHttpBinding(String binding) ReturnsSOAPVersionwhosehttpBindingIdequals to the given string.static SOAPVersionReturnsSOAPVersionwhosensUriequals to the given string.javax.xml.soap.MessageFactoryjavax.xml.soap.SOAPFactorytoString()static SOAPVersionReturns the enum constant of this type with the specified name.static SOAPVersion[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SOAP_11
-
SOAP_12
-
-
Field Details
-
httpBindingId
Binding ID for SOAP/HTTP binding of this SOAP version.Either
SOAPBinding.SOAP11HTTP_BINDINGorSOAPBinding.SOAP12HTTP_BINDING -
nsUri
SOAP envelope namespace URI. -
contentType
Content-type. Either "text/xml" or "application/soap+xml". -
faultCodeMustUnderstand
SOAP MustUnderstand FaultCode for this SOAP version -
saajMessageFactory
Deprecated.SAAJMessageFactoryfor this SOAP version. -
saajSoapFactory
Deprecated.SAAJSOAPFactoryfor this SOAP version. -
implicitRole
If the actor/role attribute is absent, this SOAP version assumes this value. -
implicitRoleSet
Singleton set that containsimplicitRole. -
requiredRoles
This represents the roles required to be assumed by SOAP binding implementation. -
roleAttributeName
"role" (SOAP 1.2) or "actor" (SOAP 1.1) -
faultCodeClient
"{nsUri}Client" or "{nsUri}Sender" -
faultCodeServer
"{nsUri}Server" or "{nsUri}Receiver"
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getSOAPFactory
public javax.xml.soap.SOAPFactory getSOAPFactory() -
getMessageFactory
public javax.xml.soap.MessageFactory getMessageFactory() -
toString
- Overrides:
toStringin classEnum<SOAPVersion>
-
fromHttpBinding
ReturnsSOAPVersionwhosehttpBindingIdequals to the given string. This method does not perform input string validation.- Parameters:
binding- for historical reason, we treat null asSOAP_11, but you really shouldn't be passing null.- Returns:
- always non-null.
-
fromNsUri
ReturnsSOAPVersionwhosensUriequals to the given string. This method does not perform input string validation.- Parameters:
nsUri- must not be null.- Returns:
- always non-null.
-
from
-
from
-
toFeature
-