public final class SoapHelper
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
checkSoapHeader(javax.servlet.http.HttpServletRequest request)
Checks the HTTP-Header for action or SOAPAction elements.
|
static java.lang.String |
getContentFromElement(javax.xml.soap.SOAPHeader soapHeader,
java.lang.String namespaceURI,
java.lang.String localName)
Get text content from element by namespace.
|
static java.lang.String |
getSoapFaultReasonText(ExceptionCode exceptionCode)
Get the reason for a SOAP fault from Exception code
|
static javax.xml.soap.SOAPMessage |
getSoapMessageForProtocol(java.lang.String soapVersion)
Creates a SOAP message for SOAP 1.2 or 1.1
|
static javax.xml.soap.SOAPMessage |
getSoapMessageForProtocol(java.lang.String soapVersion,
java.io.InputStream inputStream) |
public static java.lang.String checkSoapHeader(javax.servlet.http.HttpServletRequest request)
request - HTTP requestpublic static java.lang.String getContentFromElement(javax.xml.soap.SOAPHeader soapHeader,
java.lang.String namespaceURI,
java.lang.String localName)
soapHeader - SOAPHeader elementnamespaceURI - Namespace URIlocalName - local namepublic static javax.xml.soap.SOAPMessage getSoapMessageForProtocol(java.lang.String soapVersion)
throws javax.xml.soap.SOAPException
soapVersion - SOAP versionjavax.xml.soap.SOAPException - if an error occurs.public static javax.xml.soap.SOAPMessage getSoapMessageForProtocol(java.lang.String soapVersion,
java.io.InputStream inputStream)
throws javax.xml.soap.SOAPException,
java.io.IOException
javax.xml.soap.SOAPExceptionjava.io.IOExceptionpublic static java.lang.String getSoapFaultReasonText(ExceptionCode exceptionCode)
exceptionCode - OWS exception code to get reason for.Copyright © 2015–2018 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.