com.sun.identity.liberty.ws.soapbinding
Class  Client
java.lang.Object
  |
  +--com.sun.identity.liberty.ws.soapbinding.Client
- public class Client- extends java.lang.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,
            java.lang.String connectTo)Sends a request to a SOAP endpoint and returns the response.
 | 
| static Message | sendRequest(Message req,
            java.lang.String connectTo,
            java.lang.String certAlias)Sends a request to a SOAP endpoint and returns the response.
 | 
| static Message | sendRequest(Message req,
            java.lang.String connectTo,
            java.lang.String certAlias,
            java.lang.String soapAction)Sends a request to a SOAP endpoint and returns the response.
 | 
 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
sendRequest
public static Message sendRequest(Message req,
                                  java.lang.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,
                                  java.lang.String connectTo,
                                  java.lang.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
- 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,
                                  java.lang.String connectTo,
                                  java.lang.String certAlias,
                                  java.lang.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
- connectTo- the SOAP endpoint URL
- certAlias- the cert alias of a client certificate being used in
                  SSL
- 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
 
Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.