public class SoapUtils extends Object
| Constructor and Description |
|---|
SoapUtils() |
| Modifier and Type | Method and Description |
|---|---|
static SOAPMessage |
generateSoapMessage(Document document)
Generates a SOAP Message object starting from a dom object
|
static void |
main(String[] args) |
static SOAPMessage |
performCall(SOAPMessage message,
String url)
Executes a SOAP call
|
static SOAPMessage |
performCall(SOAPMessage message,
String url,
boolean useSecurityManager)
Executes a SOAP call
|
static String |
soapMessage2String(SOAPMessage soapMessage)
Translates a soap message object into string
|
public static String soapMessage2String(SOAPMessage soapMessage) throws Exception
soapMessage - a SOAP message objectException - if something goes wrongpublic static SOAPMessage generateSoapMessage(Document document) throws Exception
document - the dom objectSOAPException - if it is impossible to generate the SOAP objectException - if something goes wrongpublic static SOAPMessage performCall(SOAPMessage message, String url) throws UnsupportedOperationException, SOAPException
message - the messageurl - the target urlUnsupportedOperationExceptionSOAPExceptionpublic static SOAPMessage performCall(SOAPMessage message, String url, boolean useSecurityManager) throws UnsupportedOperationException, SOAPException
message - the messageurl - the target urluseSecurityManager - true if the securitymanager must be used, false otherwiseUnsupportedOperationExceptionSOAPExceptionCopyright © 2017. All Rights Reserved.