SOAPClient
public class SOAPClient extends Object
SOAPClient
provides methods for SOAP and JAXRPC
client to send and receive messages. The method call(..)
will
be used by SOAP client to send SOAP messages, and JAXRPC clients will use
encodeMessage
and send
to send JAXRPC requests.
The method encodeMessage(String functionName,
Object[] args)
,
encodes the JAXRPC data in SOAP, which can then be sent using the send(
String message, String cookies)
.
The SOAPClient
can 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 java
Object
; else an exception is thrown.
Constructor and Description |
---|
SOAPClient()
Deprecated.
Constructor for applications that would like to dynamically set the SOAP
endponts using
|
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.
|
Modifier and Type | Method and Description |
---|---|
InputStream |
call(String message,
String cookies)
Deprecated.
Performs a raw SOAP call with "message" as the SOAP data and response is
returned as
StringBuffer |
Map |
decodeMap(String xmlMap)
Deprecated.
|
String |
encodeMap(Map map)
Deprecated.
|
String |
encodeMap(String name,
Map map)
Deprecated.
|
String |
encodeMessage(String function,
Object param)
Deprecated.
Returns a SOAP request compliant with JAXRPC for the provide function
name
function that takes the parameter param
as the only argument. |
String |
encodeMessage(String function,
Object[] params)
Deprecated.
Returns a SOAP request compliant with JAXRPC for the provide function
name
function that takes the parameters
params as its arguments. |
Object |
send(String functionName,
Object[] params,
String cookies)
Deprecated.
Performs a JAXRPC method call.
|
Object |
send(String functionName,
Object param,
String cookies)
Deprecated.
Performs a JAXRPC method call.
|
Object |
send(String message,
String cookies)
Deprecated.
Performs a JAXRPC method call.
|
void |
setURL(String url)
Deprecated.
|
public SOAPClient() throws IOException
setUrls(String[] urls)
before
invoking either send()
or
call()
.
IOException
public SOAPClient(String serviceName)
public SOAPClient(String[] urls)
SOAPClient
will iterate through the URLs in case of server
failure.public InputStream call(String message, String cookies) throws Exception
StringBuffer
Exception
public Object send(String functionName, Object[] params, String cookies) throws Exception
functionName
is the JAXRPC function to be called with parameters params
.
Returns an object on success, else throws an Exception
.Exception
public Object send(String functionName, Object param, String cookies) throws Exception
functionName
is the JAXRPC function to be called with parameter param
.
Returns an object on success, else throws an Exception
.Exception
public Object send(String message, String cookies) throws Exception
message
contains SOAP encoded function call obtained from
encodeMessage
. Returns an object on success, else throws
an Exception
.Exception
public void setURL(String url)
public String encodeMessage(String function, Object param)
function
that takes the parameter param
as the only argument.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.