com.sun.identity.liberty.ws.soapbinding
クラス Client

java.lang.Object
  上位を拡張 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.


メソッドの概要
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.
 

メソッドの詳細

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'

パラメータ:
req - the request
connectTo - the SOAP endpoint URL
戻り値:
a response from the SOAP endpoint
例外:
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'.

パラメータ:
req - the request message.
connectTo - the SOAP endpoint URL
certAlias - the cert alias of a client certificate being used in SSL
戻り値:
a response from the SOAP endpoint
例外:
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'.

パラメータ:
req - the request message.
connectTo - the SOAP endpoint URL
certAlias - the cert alias of a client certificate
soapAction - the SOAPAction header
戻り値:
a response from the SOAP endpoint
例外:
SOAPFaultException - if a SOAP Fault occurs
SOAPBindingException - if a error occurs while processing, sending or receiving Message