org.apache.axis2.clientapi
Class Call

java.lang.Object
  extended byorg.apache.axis2.clientapi.MEPClient
      extended byorg.apache.axis2.clientapi.InOutMEPClient
          extended byorg.apache.axis2.clientapi.Call
Direct Known Subclasses:
RESTCall

public class Call
extends InOutMEPClient

This class should be used only to invoke INOUT web services and will serve as a more convenient class to work with INOUT MEP.


Nested Class Summary
 
Nested classes inherited from class org.apache.axis2.clientapi.InOutMEPClient
InOutMEPClient.SyncCallBack
 
Field Summary
protected static OperationDescription operationTemplate
           
 
Fields inherited from class org.apache.axis2.clientapi.InOutMEPClient
callbackReceiver, listener, listenerTransport, senderTransport, timeOutInMilliSeconds, to, useSeparateListener
 
Fields inherited from class org.apache.axis2.clientapi.MEPClient
doREST, doRestThroughPOST, isExceptionToBeThrownOnSOAPFault, mep, serviceContext, soapAction, soapVersionURI, wsaAction
 
Constructor Summary
Call()
           
Call(ServiceContext service)
           
Call(java.lang.String clientHome)
          This is used to create call object with client home , using only this constructor it can able to engage modules , addning client side parameters
 
Method Summary
protected static ServiceContext assumeServiceContext(java.lang.String clientHome)
          Assume the values for the ConfigurationContext and ServiceContext to make the NON WSDL cases simple.
 java.lang.Object get(java.lang.String key)
           
 MessageContext getLastResponseMessage()
           
 OMElement invokeBlocking(java.lang.String axisop, OMElement toSend)
          Invoke the blocking/Synchronous call
 SOAPEnvelope invokeBlocking(java.lang.String axisop, SOAPEnvelope envelope)
          Invoke the blocking/Synchronous call
 void invokeNonBlocking(java.lang.String axisop, OMElement toSend, Callback callback)
          Invoke the nonblocking/Asynchronous call
 void invokeNonBlocking(java.lang.String axisop, SOAPEnvelope envelope, Callback callback)
          Invoke the nonblocking/Asynchronous call
 void set(java.lang.String key, java.lang.Object value)
           
 
Methods inherited from class org.apache.axis2.clientapi.InOutMEPClient
close, invokeBlocking, invokeNonBlocking, setTimeOutInMilliSeconds, setTo, setTransportInfo
 
Methods inherited from class org.apache.axis2.clientapi.MEPClient
createDefaultSOAPEnvelope, engageModule, getSoapAction, inferTransport, prepareInvocation, prepareTheSOAPEnvelope, setDoREST, setExceptionToBeThrownOnSOAPFault, setRestThroughPOST, setSoapAction, setSoapVersionURI, setWsaAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

operationTemplate

protected static OperationDescription operationTemplate
Constructor Detail

Call

public Call()
     throws AxisFault
Throws:
AxisFault

Call

public Call(java.lang.String clientHome)
     throws AxisFault
This is used to create call object with client home , using only this constructor it can able to engage modules , addning client side parameters

Parameters:
clientHome -
Throws:
AxisFault

Call

public Call(ServiceContext service)
Parameters:
service -
See Also:
constructer
Method Detail

invokeBlocking

public OMElement invokeBlocking(java.lang.String axisop,
                                OMElement toSend)
                         throws AxisFault
Invoke the blocking/Synchronous call

Parameters:
axisop - - this will be used to identify the operation in the client side, without dispatching
toSend - - This should be OM Element (payload)
Returns:
Throws:
AxisFault

invokeBlocking

public SOAPEnvelope invokeBlocking(java.lang.String axisop,
                                   SOAPEnvelope envelope)
                            throws AxisFault
Invoke the blocking/Synchronous call

Parameters:
axisop - - this will be used to identify the operation in the client side, without dispatching
envelope - - This should be SOAPEnvelope
Returns:
Throws:
AxisFault

invokeNonBlocking

public void invokeNonBlocking(java.lang.String axisop,
                              OMElement toSend,
                              Callback callback)
                       throws AxisFault
Invoke the nonblocking/Asynchronous call

Parameters:
axisop -
toSend - - This should be OM Element (payload) invocation behaves accordingly
callback -
Throws:
AxisFault

invokeNonBlocking

public void invokeNonBlocking(java.lang.String axisop,
                              SOAPEnvelope envelope,
                              Callback callback)
                       throws AxisFault
Invoke the nonblocking/Asynchronous call

Parameters:
axisop -
envelope - - This should be a SOAP Envelope invocation behaves accordingly
callback -
Throws:
AxisFault

assumeServiceContext

protected static ServiceContext assumeServiceContext(java.lang.String clientHome)
                                              throws AxisFault
Assume the values for the ConfigurationContext and ServiceContext to make the NON WSDL cases simple.

Returns:
ServiceContext that has a ConfigurationContext set in and has assumed values.
Throws:
AxisFault

get

public java.lang.Object get(java.lang.String key)
Parameters:
key -
Returns:

set

public void set(java.lang.String key,
                java.lang.Object value)
Parameters:
key -
value -

getLastResponseMessage

public MessageContext getLastResponseMessage()
Returns: