SOAPHttpConnector

public class SOAPHttpConnector extends HttpConnector

SOAPHttpConnector is an HTTP connector for making HTTP SOAP connections to an endpoint.

Author:Hugo Y. K. Lam

Constructors

SOAPHttpConnector

public SOAPHttpConnector(Object endpoint)

Creates a new instance of SOAPHttpConnector.

Parameters:
  • endpoint – the end point, either in String or URL format.
Throws:
  • MalformedURLException – if the end point is malformed.

Methods

send

public SOAPMessage send(SOAPMessage request)

Sends an HTTP SOAP request.

Parameters:
  • request – the SOAP request message.
Throws:
  • ConnectionException – if failed in sending the HTTP SOAP request or creating a new connection.
Returns:

the SOAP reply message responsed from the host.

send

public SOAPMessage send(SOAPMessage request, HttpURLConnection connection)

Sends an HTTP SOAP request using the given HTTP connection.

Parameters:
  • request – the SOAP request message.
  • connection – the HTTP connection for sending the request.
Throws:
Returns:

the SOAP reply message responsed from the host.