public class RPCServiceClient extends ServiceClient
ANON_OUT_IN_OP, ANON_OUT_ONLY_OP, ANON_ROBUST_OUT_ONLY_OP, ANON_SERVICE, AUTO_OPERATION_CLEANUP, log
Constructor and Description |
---|
RPCServiceClient() |
RPCServiceClient(ConfigurationContext configContext,
AxisService service) |
RPCServiceClient(ConfigurationContext configContext,
URL wsdlURL,
javax.xml.namespace.QName wsdlServiceName,
String portName) |
Modifier and Type | Method and Description |
---|---|
org.apache.axiom.om.OMElement |
invokeBlocking(javax.xml.namespace.QName opName,
Object[] args)
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.
|
Object[] |
invokeBlocking(javax.xml.namespace.QName opName,
Object[] args,
Class[] returnTypes) |
void |
invokeNonBlocking(javax.xml.namespace.QName opName,
Object[] args,
AxisCallback callback)
Invoke the nonblocking/Asynchronous call
|
void |
invokeNonBlocking(javax.xml.namespace.QName opName,
Object[] args,
Callback callback)
Deprecated.
Please use the AxisCallback interface rather than Callback, which has been deprecated
|
void |
invokeRobust(javax.xml.namespace.QName opName,
Object[] args) |
addHeader, addHeader, addHeadersToEnvelope, addStringHeader, cleanup, cleanupTransport, createClient, disengageModule, disengageModule, engageModule, engageModule, equals, finalize, fireAndForget, fireAndForget, getAxisConfiguration, getAxisService, getLastOperationContext, getMyEPR, getOptions, getOverrideOptions, getServiceContext, getTargetEPR, hashCode, removeHeaders, sendReceive, sendReceive, sendReceiveNonBlocking, sendReceiveNonBlocking, sendReceiveNonBlocking, sendReceiveNonBlocking, sendRobust, sendRobust, setAxisService, setCachingOperationContext, setOptions, setOverrideOptions, setTargetEPR
public RPCServiceClient(ConfigurationContext configContext, AxisService service) throws AxisFault
AxisFault
public RPCServiceClient(ConfigurationContext configContext, URL wsdlURL, javax.xml.namespace.QName wsdlServiceName, String portName) throws AxisFault
AxisFault
public org.apache.axiom.om.OMElement invokeBlocking(javax.xml.namespace.QName opName, Object[] args) throws AxisFault
opName
- Operation QName (to get the body wrapper element)args
- Arraylist of objectsAxisFault
- in case of a problem - this can either be a processing fault or a received
on-the-wire fault.public Object[] invokeBlocking(javax.xml.namespace.QName opName, Object[] args, Class[] returnTypes) throws AxisFault
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]AxisFault
- a problem occurred, either locally or on the other side of the wirepublic void invokeNonBlocking(javax.xml.namespace.QName opName, Object[] args, Callback callback) throws AxisFault
opName
- Operation QName (to get the body wrapper element)args
- an array of argument Objectscallback
- object extending Callback which will receive notificationsAxisFault
- in case of a local processing errorpublic void invokeNonBlocking(javax.xml.namespace.QName opName, Object[] args, AxisCallback callback) throws AxisFault
opName
- Operation QName (to get the body wrapper element)args
- an array of argument Objectscallback
- object implementing AxisCallback which will receive notificationsAxisFault
- in case of a local processing errorCopyright © 2004–2016 The Apache Software Foundation. All rights reserved.