com.sun.identity.liberty.ws.soapbinding
Class Client

java.lang.Object
  extended by com.sun.identity.liberty.ws.soapbinding.Client

public class Client
extends Object

The Client class provides web service clients with a method to send requests using SOAP connection to web service servers.


Method Summary
static Message sendRequest(Message req, String connectTo)
          Sends a request to a SOAP endpoint and returns the response.
static Message sendRequest(Message req, String connectTo, String certAlias)
          Sends a request to a SOAP endpoint and returns the response.
static Message sendRequest(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 request
connectTo - the SOAP endpoint URL
Returns:
a response from the SOAP endpoint
Throws:
SOAPBindingException - if an error occurs while sending the message
SOAPFaultException - 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 URL
certAlias - 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 message
SOAPFaultException - 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 URL
certAlias - the cert alias of a client certificate
soapAction - the SOAPAction header
Returns:
a response from the SOAP endpoint
Throws:
SOAPFaultException - if a SOAP Fault occurs
SOAPBindingException - if a error occurs while processing, sending or receiving Message