org.apache.axis2.rpc.client
Class RPCServiceClient
java.lang.Object
org.apache.axis2.client.ServiceClient
org.apache.axis2.rpc.client.RPCServiceClient
- public class RPCServiceClient
- extends ServiceClient
Methods inherited from class org.apache.axis2.client.ServiceClient |
addHeader, addHeader, addHeadersToEnvelope, addStringHeader, cleanup, createClient, disengageModule, engageModule, finalize, fireAndForget, fireAndForget, getAxisService, getMyEPR, getOptions, getOverrideOptions, getServiceContext, getTargetEPR, removeHeaders, sendReceive, sendReceive, sendReceiveNonBlocking, sendReceiveNonBlocking, sendRobust, sendRobust, setOptions, setOverrideOptions, setTargetEPR |
RPCServiceClient
public RPCServiceClient(ConfigurationContext configContext,
AxisService service)
throws AxisFault
RPCServiceClient
public RPCServiceClient()
throws AxisFault
RPCServiceClient
public RPCServiceClient(ConfigurationContext configContext,
URL wsdlURL,
QName wsdlServiceName,
String portName)
throws AxisFault
invokeBlocking
public org.apache.axiom.om.OMElement invokeBlocking(QName opName,
Object[] args)
throws AxisFault
- Return value can be a single a object or an object array (itself an object) , but it is
difficulty to figure the return object correctly unless we have TyepMapping in the client
side too. Until it is finalized lets return OMElement as return value. And the retuen
value will be the body first element user has to deal with that and create
his own object out of that.
- Parameters:
opName
- Operation QName (to get the body wrapper element)args
- Arraylist of objects
- Returns:
- Response OMElement
- Throws:
AxisFault
invokeBlocking
public Object[] invokeBlocking(QName opName,
Object[] args,
Class[] returnTypes)
throws AxisFault
- Parameters:
opName
- Operation QName (to get the body wrapper element)args
- Arraylist of objectsreturnTypes
- , this array contains the JavaTypes for the return object , it could be one
or more depending on the return type , most of the type array will contain just one element
It should be noted that the array should only contains JavaTypes NOT real object , what this
methods does is , get the body first element , and if it contains more than one childern take
ith element and convert that to ith javatype and fill the return arrya
the array will look like as follows
[Integer, String, MyBean , etc]
- Returns:
- Object array , whic will contains real object , but the object can either be simple type
object or the JavaBeans, thats what this method can handle right now
the return array will contains [10, "Axis2Echo", {"foo","baa","11"}]
- Throws:
AxisFault
invokeNonBlocking
public void invokeNonBlocking(QName opName,
Object[] args,
Callback callback)
throws AxisFault
- Invoke the nonblocking/Asynchronous call
- Parameters:
opName
- args
- - This should be OM Element (payload)
invocation behaves accordinglycallback
-
- Throws:
AxisFault
invokeRobust
public void invokeRobust(QName opName,
Object[] args)
throws AxisFault
- Throws:
AxisFault