Package org.frankframework.soap
Class SoapWrapper
java.lang.Object
org.frankframework.soap.SoapWrapper
Utility class that wraps and unwraps messages from (and into) a SOAP Envelope.
- Author:
- Gerrit van Brakel
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkForSoapFault
(Message responseBody, Throwable nested, PipeLineSession session) createSoapFaultMessage
(String faultstring) createSoapFaultMessage
(String faultcode, String faultstring) getBody
(Message message, boolean allowPlainXml, PipeLineSession session, String soapNamespaceSessionKey) protected String
getFaultCode
(Message message, PipeLineSession session) int
getFaultCount
(Message message) protected String
getFaultString
(Message message, PipeLineSession session) getHeader
(Message message, PipeLineSession session) static SoapWrapper
putInEnvelope
(Message message, String encodingStyleUri) putInEnvelope
(Message message, String encodingStyleUri, String targetObjectNamespace) putInEnvelope
(Message message, String encodingStyleUri, String targetObjectNamespace, String soapHeader) putInEnvelope
(Message message, String encodingStyleUri, String targetObjectNamespace, String soapHeader, String namespaceDefs) putInEnvelope
(Message message, String encodingStyleUri, String targetObjectNamespace, String soapHeaderInitial, String namespaceDefs, String soapNamespace, CredentialFactory wsscf, boolean passwordDigest, boolean includeXmlDeclaration) void
setIdAllocator
(org.apache.wss4j.dom.WsuIdAllocator idAllocator) signMessage
(Message soapMessage, String user, String password, boolean passwordDigest)
-
Field Details
-
log
protected org.apache.logging.log4j.Logger log -
SOAP_VERSION_SESSION_KEY
- See Also:
-
DEFAULT_XML_HEADER
- See Also:
-
-
Method Details
-
getInstance
- Throws:
ConfigurationException
-
checkForSoapFault
public void checkForSoapFault(Message responseBody, Throwable nested, PipeLineSession session) throws SenderException - Throws:
SenderException
-
getBody
public Message getBody(Message message, boolean allowPlainXml, PipeLineSession session, String soapNamespaceSessionKey) throws SAXException, TransformerException, IOException -
getHeader
public String getHeader(Message message, PipeLineSession session) throws SAXException, TransformerException, IOException -
getFaultCount
-
getFaultCode
protected String getFaultCode(Message message, PipeLineSession session) throws SAXException, TransformerException, IOException -
getFaultString
protected String getFaultString(Message message, PipeLineSession session) throws SAXException, TransformerException, IOException -
putInEnvelope
- Throws:
IOException
-
putInEnvelope
public Message putInEnvelope(Message message, String encodingStyleUri, String targetObjectNamespace) throws IOException - Throws:
IOException
-
putInEnvelope
public Message putInEnvelope(Message message, String encodingStyleUri, String targetObjectNamespace, String soapHeader) throws IOException - Throws:
IOException
-
putInEnvelope
public Message putInEnvelope(Message message, String encodingStyleUri, String targetObjectNamespace, String soapHeader, String namespaceDefs) throws IOException - Throws:
IOException
-
putInEnvelope
public Message putInEnvelope(Message message, String encodingStyleUri, String targetObjectNamespace, String soapHeaderInitial, String namespaceDefs, String soapNamespace, CredentialFactory wsscf, boolean passwordDigest, boolean includeXmlDeclaration) throws IOException - Throws:
IOException
-
createSoapFaultMessage
-
createSoapFaultMessage
-
signMessage
-
setIdAllocator
public void setIdAllocator(org.apache.wss4j.dom.WsuIdAllocator idAllocator)
-