| Modifier and Type | Field and Description |
|---|---|
static int |
SAAJ_11 |
static int |
SAAJ_12 |
static int |
SAAJ_13 |
| Constructor and Description |
|---|
SaajUtils() |
| Modifier and Type | Method and Description |
|---|---|
static SOAPEnvelope |
getEnvelope(SOAPElement element)
Returns the SAAJ
SOAPEnvelope for the given element. |
static SOAPElement |
getFirstBodyElement(SOAPBody body)
Returns the first child element of the given body.
|
static int |
getSaajVersion()
Gets the SAAJ version.
|
static int |
getSaajVersion(SOAPElement soapElement)
Gets the SAAJ version for the specified
SOAPElement. |
static int |
getSaajVersion(SOAPMessage soapMessage)
Gets the SAAJ version for the specified
SOAPMessage. |
static String |
getSaajVersionString()
Returns the SAAJ version as a String.
|
static SOAPMessage |
loadMessage(Resource resource,
MessageFactory messageFactory)
Loads a SAAJ
SOAPMessage from the given resource with a given message factory. |
static Name |
toName(QName qName,
SOAPElement resolveElement)
|
static QName |
toQName(Name name)
Converts a
javax.xml.soap.Name to a javax.xml.namespace.QName. |
public static final int SAAJ_11
public static final int SAAJ_12
public static final int SAAJ_13
public static int getSaajVersion()
SAAJ_13 as of Spring-WS 2.2.public static int getSaajVersion(SOAPMessage soapMessage) throws SOAPException
SOAPMessage.
Returns SAAJ_13 as of Spring-WS 2.2.SOAPExceptionSAAJ_11,
SAAJ_12,
SAAJ_13public static int getSaajVersion(SOAPElement soapElement)
SOAPElement.
Returns SAAJ_13 as of Spring-WS 2.2.public static String getSaajVersionString()
SAAJ 1.3", "SAAJ
1.2", or "SAAJ 1.1".getSaajVersion()public static Name toName(QName qName, SOAPElement resolveElement) throws SOAPException
qName - the QName to convertresolveElement - a SOAPElement used to resolve namespaces to prefixesSOAPException - if conversion is unsuccessfulIllegalArgumentException - if qName is not fully qualifiedpublic static QName toQName(Name name)
javax.xml.soap.Name to a javax.xml.namespace.QName.name - the Name to convertQNamepublic static SOAPMessage loadMessage(Resource resource, MessageFactory messageFactory) throws SOAPException, IOException
SOAPMessage from the given resource with a given message factory.resource - the resource to read frommessageFactory - SAAJ message factory used to construct the messageSOAPException - if the message cannot be constructedIOException - if the input stream resource cannot be loadedpublic static SOAPEnvelope getEnvelope(SOAPElement element)
SOAPEnvelope for the given element.element - the element to return the envelope fromnull if not foundpublic static SOAPElement getFirstBodyElement(SOAPBody body)