|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.andromda.cartridges.support.webservice.client.WebServiceClient
public class WebServiceClient
A webservice client using Axis2 libraries that allows you to invoke operations on wrapped style services.
| Constructor Summary | |
|---|---|
WebServiceClient(String wsdlUrl,
Class serviceClass)
Constructs a new client taking a WSDL and serviceClass |
|
WebServiceClient(String wsdlUrl,
Class serviceClass,
String username,
String password)
Constructs a new client taking a WSDL, the serviceClass and username and password. |
|
WebServiceClient(String wsdlUrl,
String endpointAddress,
Class serviceClass,
String username,
String password)
Constructs a new client taking a WSDL, endpointAddress, serviceClass and username and password. |
|
| Method Summary | |
|---|---|
void |
cleanup()
Reclaims any resources used by the client. |
Object |
invokeBlocking(String operationName,
Object[] arguments)
Invokes the operation identified by the given operationName with the
given arguments. |
void |
invokeNonBlocking(String operationName,
Object[] arguments,
org.apache.axis2.client.async.Callback callback)
Invoke the nonblocking/Asynchronous call |
void |
invokeRobust(String operationName,
Object[] arguments)
|
void |
setTimeout(long seconds)
Sets the timeout in seconds. |
void |
setTypeMapper(TypeMapper typeMapper)
Sets the optional object creator implementation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebServiceClient(String wsdlUrl,
Class serviceClass)
wsdlUrl - the URL to the WSDL for the service.serviceClass - the class used for communicating with the service (i.e. can be a regular java object).
public WebServiceClient(String wsdlUrl,
Class serviceClass,
String username,
String password)
wsdlUrl - the URL to the WSDL for the service.serviceClass - the class used for communicating with the service (i.e. can be a regular java object).username - the username to access to the service (if its protected by basic auth).password - the password to access the service (if its protected by basic auth).
public WebServiceClient(String wsdlUrl,
String endpointAddress,
Class serviceClass,
String username,
String password)
wsdlUrl - the URL to the WSDL for the service.endpointAddress - the "end point" or "port" address of the service (if null, then the one in the WSDL will be used).serviceClass - the class used for communicating with the service (i.e. can be a regular java object).username - the username to access to the service (if its protected by basic auth).password - the password to access the service (if its protected by basic auth).| Method Detail |
|---|
public void setTypeMapper(TypeMapper typeMapper)
typeMapper - the type mapper used for mapping types.public void setTimeout(long seconds)
seconds -
public Object invokeBlocking(String operationName,
Object[] arguments)
operationName with the
given arguments.
operationName - the name of the operation to invoke.arguments - the arguments of the operation.
Axis2ClientUtils.deserialize(OMElement, Class, TypeMapper)
public void invokeNonBlocking(String operationName,
Object[] arguments,
org.apache.axis2.client.async.Callback callback)
operationName - arguments - callback -
public void invokeRobust(String operationName,
Object[] arguments)
operationName - arguments - public void cleanup()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||