Class Client
- java.lang.Object
-
- com.sun.identity.liberty.ws.soapbinding.Client
-
public class Client extends Object
TheClientclass provides web service clients with a method to send requests using SOAP connection to web service servers.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MessagesendRequest(Message req, String connectTo)Sends a request to a SOAP endpoint and returns the response.static MessagesendRequest(Message req, String connectTo, String certAlias)Sends a request to a SOAP endpoint and returns the response.static MessagesendRequest(Message req, String connectTo, String certAlias, String soapAction)Sends a request to a SOAP endpoint and returns the response.
-
-
-
Method Detail
-
sendRequest
public static Message sendRequest(Message req, String connectTo) throws SOAPBindingException, SOAPFaultException
Sends a request to a SOAP endpoint and returns the response. The server only contains one servlet for different web services. So the SOAP endpoint URL has format 'servlet_URL/key'- Parameters:
req- the requestconnectTo- the SOAP endpoint URL- Returns:
- a response from the SOAP endpoint
- Throws:
SOAPBindingException- if an error occurs while sending the messageSOAPFaultException- if the response is a SOAP Fault
-
sendRequest
public static Message sendRequest(Message req, String connectTo, String certAlias) throws SOAPBindingException, SOAPFaultException
Sends a request to a SOAP endpoint and returns the response. The server only contains one servlet for different web services. So the SOAP endpoint URL has format 'servlet_URL/key'.- Parameters:
req- the request message.connectTo- the SOAP endpoint URLcertAlias- the cert alias of a client certificate being used in SSL- Returns:
- a response from the SOAP endpoint
- Throws:
SOAPBindingException- if an error occurs while sending the messageSOAPFaultException- if the response is a SOAP Fault
-
sendRequest
public static Message sendRequest(Message req, String connectTo, String certAlias, String soapAction) throws SOAPBindingException, SOAPFaultException
Sends a request to a SOAP endpoint and returns the response. The server only contains one servlet for different web services. So the SOAP endpoint URL has format 'servlet_URL/key'.- Parameters:
req- the request message.connectTo- the SOAP endpoint URLcertAlias- the cert alias of a client certificatesoapAction- the SOAPAction header- Returns:
- a response from the SOAP endpoint
- Throws:
SOAPFaultException- if a SOAP Fault occursSOAPBindingException- if a error occurs while processing, sending or receiving Message
-
-