public class SoapExecutor extends Object
Constructor and Description |
---|
SoapExecutor() |
Modifier and Type | Method and Description |
---|---|
protected void |
addNamespaces(org.jaxen.SimpleNamespaceContext context,
javax.xml.soap.SOAPElement element)
Namespace context resolver
|
org.jaxen.XPath |
createXPath(String query,
javax.xml.soap.SOAPMessage response)
Constructs XPath query over the SOAP message
|
String |
dumpSoapMessage(javax.xml.soap.SOAPMessage msg)
Dumps the SOAPMessage to String
|
javax.xml.soap.SOAPMessage |
execute(String endpointUrl,
javax.xml.soap.SOAPMessage message)
Executes SOAP message
|
javax.xml.soap.SOAPMessage |
execute(String endpointUrl,
String request)
Executes SOAP message
|
public javax.xml.soap.SOAPMessage execute(String endpointUrl, String request) throws javax.xml.soap.SOAPException, IOException
endpointUrl
- SOAP endpointrequest
- SOAP requestjavax.xml.soap.SOAPException
- in case of a SOAP issueIOException
- in case of an IO issuepublic javax.xml.soap.SOAPMessage execute(String endpointUrl, javax.xml.soap.SOAPMessage message) throws javax.xml.soap.SOAPException, IOException
endpointUrl
- SOAP endpointmessage
- SOAP requestjavax.xml.soap.SOAPException
- in case of a SOAP issueIOException
- in case of an IO issuepublic org.jaxen.XPath createXPath(String query, javax.xml.soap.SOAPMessage response) throws javax.xml.soap.SOAPException, org.jaxen.JaxenException
query
- XPath queryresponse
- SOAP messagejavax.xml.soap.SOAPException
- in case of SOAP issueorg.jaxen.JaxenException
- XPath problemprotected void addNamespaces(org.jaxen.SimpleNamespaceContext context, javax.xml.soap.SOAPElement element)
context
- namespace contextelement
- SOAP message elementpublic String dumpSoapMessage(javax.xml.soap.SOAPMessage msg) throws IOException, javax.xml.soap.SOAPException
msg
- the SOAP messageIOException
- IO issuejavax.xml.soap.SOAPException
- SOAP issueCopyright © 2014. All rights reserved.