public class SoapRequest
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SoapRequest.SoapResponse
Static class that captures the soap responses
|
| Constructor and Description |
|---|
SoapRequest() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.axiom.om.OMElement |
getFrPayLoad(java.lang.String requestVdo)
Function to convert Ont requestVdo to OMElement
|
static org.apache.axis2.client.ServiceClient |
getServiceClient()
Retuns the unique instance of the ServerClient
|
SoapRequest.SoapResponse |
sendSoap(java.lang.String endPointURL,
java.lang.String xmlRequest,
java.lang.String action)
Sends a SOAP request
|
SoapRequest.SoapResponse |
sendSoap(java.lang.String endpointURL,
java.lang.String xmlRequest,
java.lang.String action,
java.lang.String fileName,
java.lang.String fileData)
Sends a SOAP request attaching a file
|
public SoapRequest.SoapResponse sendSoap(java.lang.String endPointURL, java.lang.String xmlRequest, java.lang.String action) throws java.lang.Exception
endPointURL - The complete url end point, including http or https, the host, the port and the end pointxmlRequest - The xml request body of the soap messageaction - The actionjava.lang.Exceptionpublic SoapRequest.SoapResponse sendSoap(java.lang.String endpointURL, java.lang.String xmlRequest, java.lang.String action, java.lang.String fileName, java.lang.String fileData) throws java.io.IOException
endpointURL - The complete url end point, including http or https, the host, the port and the end pointxmlRequest - The xml request body of the soap messageaction - The actionfileName - The file namefileData - The content of the filejava.lang.Exceptionjava.io.IOExceptionpublic static org.apache.axis2.client.ServiceClient getServiceClient()
throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault - In case ServiceClient cannot be instanciatedpublic static org.apache.axiom.om.OMElement getFrPayLoad(java.lang.String requestVdo)
requestVdo - String requestVdo to send to Ont web service