public abstract class SoapUtils extends Object
Modifier and Type | Field and Description |
---|---|
static Set<String> |
SOAP_NS_URIS
Set of URIs corresponding to supported SOAP versions.
|
static Set<String> |
WS_ADDRESSING_NS_URIS
Set of URIs corresponding to supported WS-Addressing specification versions.
|
Modifier and Type | Method and Description |
---|---|
static Exception |
extractOutgoingException(org.apache.cxf.message.Exchange exchange)
Returns Exception object from the outgoing fault message contained in the given
CXF exchange, or
null , when no exception could be extracted. |
static String |
extractOutgoingPayload(org.apache.cxf.message.Exchange exchange)
Returns String payload of the outgoing message contained in the given
CXF exchange, or
null , when no String payload could be extracted. |
static String |
extractSoapBody(String soapEnvelope)
Extracts the proper body (for example, a Query) from the
SOAP envelope, both represented as Strings.
|
static Element |
getElementNS(Element root,
Set<String> nsUris,
String wantedLocalName)
Searches for the first sub-element of the given XML element, which has
the given local name and whose namespace belongs to the given set.
|
public static final Set<String> WS_ADDRESSING_NS_URIS
public static String extractSoapBody(String soapEnvelope)
Does really suppose that the given String contains a SOAP envelope and not check it thoroughly.
soapEnvelope
- The SOAP Envelope (XML document) as String.public static Exception extractOutgoingException(org.apache.cxf.message.Exchange exchange)
null
, when no exception could be extracted.public static String extractOutgoingPayload(org.apache.cxf.message.Exchange exchange)
null
, when no String payload could be extracted.public static Element getElementNS(Element root, Set<String> nsUris, String wantedLocalName)
root
- an XML element whose children will be iterated, null values are allowednsUris
- a set of namespace URIs the wanted element can belong towantedLocalName
- local name of the wanted elementnull
when none foundCopyright © 2018 Open eHealth Foundation. All rights reserved.