Package com.sun.identity.jaxrpc
Class SOAPClient
- java.lang.Object
-
- com.sun.identity.jaxrpc.SOAPClient
-
public class SOAPClient extends Object
Deprecated.As of OpenSSO version 8.0SOAPClientThe classSOAPClientprovides methods for SOAP and JAXRPC client to send and receive messages. The methodcall(..)will be used by SOAP client to send SOAP messages, and JAXRPC clients will useencodeMessageandsendto send JAXRPC requests. The methodencodeMessage(String functionName, Object[] args), encodes the JAXRPC data in SOAP, which can then be sent using thesend( String message, String cookies).The
SOAPClientcan be initialized either with known SOAP endpoint URLs or it will find an active server using Naming service. In the case of JAXRPC, the SOAP response is decoded and returns a javaObject; else an exception is thrown.
-
-
Constructor Summary
Constructors Constructor Description SOAPClient()Deprecated.Constructor for applications that would like to dynamically set the SOAP endponts usingsetUrls(String[] urls)before invoking eithersend()orcall().SOAPClient(String serviceName)Deprecated.Constructor for services that use JAXRPC as their communication protocol.SOAPClient(String[] urls)Deprecated.Constructor for applications that have the list of end point URLs.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description InputStreamcall(String message, String cookies)Deprecated.Performs a raw SOAP call with "message" as the SOAP data and response is returned asStringBufferMapdecodeMap(String xmlMap)Deprecated.StringencodeMap(String name, Map map)Deprecated.StringencodeMap(Map map)Deprecated.StringencodeMessage(String function, Object param)Deprecated.Returns a SOAP request compliant with JAXRPC for the provide function namefunctionthat takes the parameterparamas the only argument.StringencodeMessage(String function, Object[] params)Deprecated.Returns a SOAP request compliant with JAXRPC for the provide function namefunctionthat takes the parametersparamsas its arguments.Objectsend(String functionName, Object[] params, String cookies)Deprecated.Performs a JAXRPC method call.Objectsend(String functionName, Object param, String cookies)Deprecated.Performs a JAXRPC method call.Objectsend(String message, String cookies)Deprecated.Performs a JAXRPC method call.voidsetURL(String url)Deprecated.
-
-
-
Constructor Detail
-
SOAPClient
public SOAPClient() throws IOExceptionDeprecated.Constructor for applications that would like to dynamically set the SOAP endponts usingsetUrls(String[] urls)before invoking eithersend()orcall().- Throws:
IOException
-
SOAPClient
public SOAPClient(String serviceName)
Deprecated.Constructor for services that use JAXRPC as their communication protocol. The URL end points for these services will be obtained from Naming service for jaxrpc service, and the service name will appended to it as the JAXRPC interface name.
-
SOAPClient
public SOAPClient(String[] urls)
Deprecated.Constructor for applications that have the list of end point URLs. TheSOAPClientwill iterate through the URLs in case of server failure.
-
-
Method Detail
-
call
public InputStream call(String message, String cookies) throws Exception
Deprecated.Performs a raw SOAP call with "message" as the SOAP data and response is returned asStringBuffer- Throws:
Exception
-
send
public Object send(String functionName, Object[] params, String cookies) throws Exception
Deprecated.Performs a JAXRPC method call. The parameterfunctionNameis the JAXRPC function to be called with parametersparams. Returns an object on success, else throws anException.- Throws:
Exception
-
send
public Object send(String functionName, Object param, String cookies) throws Exception
Deprecated.Performs a JAXRPC method call. The parameterfunctionNameis the JAXRPC function to be called with parameterparam. Returns an object on success, else throws anException.- Throws:
Exception
-
send
public Object send(String message, String cookies) throws Exception
Deprecated.Performs a JAXRPC method call. The parametermessagecontains SOAP encoded function call obtained fromencodeMessage. Returns an object on success, else throws anException.- Throws:
Exception
-
setURL
public void setURL(String url)
Deprecated.
-
encodeMessage
public String encodeMessage(String function, Object param)
Deprecated.Returns a SOAP request compliant with JAXRPC for the provide function namefunctionthat takes the parameterparamas the only argument.
-
-