|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsoapdust.Client
public class Client
Instances of this class allow to query a remote soap server.
| Constructor Summary | |
|---|---|
Client()
|
|
| Method Summary | |
|---|---|
static void |
activeTraceMode(boolean active)
Avoid using this method if you are not interested in the result. |
ComposedValue |
call(java.lang.String operation)
Calls a remote operation without parameters. |
ComposedValue |
call(java.lang.String operation,
ComposedValue parameters)
Calls a remote operation. |
protected void |
customizeHttpConnectionBeforeCall(java.net.HttpURLConnection connection)
Override this method if you want to customize the http connection. |
void |
explain(java.io.OutputStream out)
|
void |
explain(java.io.Writer out)
Displays a description of the remote soap service from its wsdl. |
void |
setEndPoint(java.lang.String url)
Set the url of the remote service to query. |
void |
setPassword(java.lang.String password)
Set a password for BASIC-AUTH authentication. |
void |
setUsername(java.lang.String userName)
Set a user name for BASIC-AUTH authentication. |
void |
setWsdlUrl(java.lang.String wsdlUrl)
Sets a wsdl url for this client. |
void |
setWsdlUrlOverrideCache(java.lang.String wsdlUrl)
Avoid using this method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Client()
| Method Detail |
|---|
public void setWsdlUrl(java.lang.String wsdlUrl)
throws java.io.IOException,
MalformedWsdlException
wsdlUrl - the url to get wsdl from.
java.io.IOException - if the wsdl is not reachable for any reason.
MalformedWsdlException - if it can not analyse the wsdl.explain,
call,
WeakHashMap
public void setEndPoint(java.lang.String url)
throws java.net.MalformedURLException
url - of the end point of the remote service.
java.net.MalformedURLException
public void explain(java.io.Writer out)
throws java.io.IOException
client.explain(System.out);
out - the Writer to print description to.
java.io.IOException
public void explain(java.io.OutputStream out)
throws java.io.IOException
out -
java.io.IOExceptionexplain(Writer)
public ComposedValue call(java.lang.String operation)
throws FaultResponseException,
java.io.IOException,
MalformedResponseException
operation - the remote operation to call
FaultResponseException - if the remote server returns a SOAP fault
java.io.IOException - in case of problem during communication with remote server
MalformedResponseException - if the remote server returns a malformed,
non-soap response.to have information about the remote service available operations.
public ComposedValue call(java.lang.String operation,
ComposedValue parameters)
throws FaultResponseException,
java.io.IOException,
MalformedResponseException
operation - the remote operation to callparameters - the parameters to transmit
FaultResponseException - if the remote server returns a SOAP fault
java.io.IOException - in case of problem during communication with remote server
MalformedResponseException - if the remote server returns a malformed,
non-soap response.to have information about the remote service available operations
and expected parameters.public void setUsername(java.lang.String userName)
userName - public void setPassword(java.lang.String password)
password -
public void setWsdlUrlOverrideCache(java.lang.String wsdlUrl)
throws java.io.IOException,
MalformedWsdlException
wsdlUrl -
java.io.IOException
MalformedWsdlExceptionsetWsdlUrlprotected void customizeHttpConnectionBeforeCall(java.net.HttpURLConnection connection)
connection - the HttpURLConnection to customizepublic static void activeTraceMode(boolean active)
active -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||