org.apache.axis2.client
Class Call

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

public class Call
extends InOutMEPClient

This class is used to invoke INOUT web services and serves as a convenience class to work with INOUT MEP.


Nested Class Summary
 
Nested classes inherited from class org.apache.axis2.client.InOutMEPClient
InOutMEPClient.SyncCallBack
 
Field Summary
protected  AxisOperation axisOperationTemplate
           
protected  MessageContext lastResponseMsgCtx
           
 
Fields inherited from class org.apache.axis2.client.InOutMEPClient
callbackReceiver
 
Fields inherited from class org.apache.axis2.client.MEPClient
clientOptions, mep
 
Constructor Summary
Call()
           
Call(ServiceContext service)
           
Call(java.lang.String clientHome)
          This is used to create call object with client home.
 
Method Summary
protected  void assumeServiceContext(java.lang.String clientHome)
          Assumes the values for the ConfigurationContext and ServiceContext to make the NON WSDL cases simple.
protected  AxisOperation createOpDescAndFillInFlowInformation(AxisOperation opDesc, java.lang.String axisOp, int mepURL)
          Creates an operation description if it is null and copies the flows from the template operation.
 MessageContext getResponseMessageContext()
          Get the MessageContext of the response
 OMElement invokeBlocking(java.lang.String axisop, OMElement toSend)
          Invokes the blocking/synchronous call.
 SOAPEnvelope invokeBlocking(java.lang.String axisop, SOAPEnvelope envelope)
          Invokes the blocking/synchronous call
 void invokeNonBlocking(java.lang.String axisop, OMElement toSend, Callback callback)
          Invokes the nonblocking/asynchronous call
 void invokeNonBlocking(java.lang.String axisop, SOAPEnvelope envelope, Callback callback)
          Invokes the nonblocking/asynchronous call
 
Methods inherited from class org.apache.axis2.client.InOutMEPClient
close, configureTransportInformation, invokeBlocking, invokeNonBlocking, send
 
Methods inherited from class org.apache.axis2.client.MEPClient
addSOAPHeader, addSOAPHeader, addUserAddedSOAPHeaders, createDefaultSOAPEnvelope, engageModule, getClientOptions, getServiceContext, inferTransport, inferTransport, inferTransportOutDescription, prepareInvocation, prepareTheSOAPEnvelope, setClientOptions, setServiceContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

axisOperationTemplate

protected AxisOperation axisOperationTemplate

lastResponseMsgCtx

protected MessageContext lastResponseMsgCtx
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.

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
Invokes the blocking/synchronous call. s

Parameters:
axisop - - this is used to identify the operation on the client side explicitly.
toSend - - data to be sent (OMElement).
Returns:
Throws:
AxisFault

invokeBlocking

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

Parameters:
axisop - - this is used to identify the operation on the client side explicitly.
envelope - - data to be sent (SOAPEnvelope).
Returns:
Throws:
AxisFault

invokeNonBlocking

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

Parameters:
axisop -
toSend - - data to be sent (OMElement).
callback -
Throws:
AxisFault

invokeNonBlocking

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

Parameters:
axisop -
envelope - - data to be sent (SOAPEnvelope).
callback -
Throws:
AxisFault

assumeServiceContext

protected void assumeServiceContext(java.lang.String clientHome)
                             throws AxisFault
Description copied from class: MEPClient
Assumes the values for the ConfigurationContext and ServiceContext to make the NON WSDL cases simple.

Overrides:
assumeServiceContext in class MEPClient
Throws:
AxisFault

createOpDescAndFillInFlowInformation

protected AxisOperation createOpDescAndFillInFlowInformation(AxisOperation opDesc,
                                                             java.lang.String axisOp,
                                                             int mepURL)
                                                      throws AxisFault
Creates an operation description if it is null and copies the flows from the template operation.

Parameters:
opDesc -
axisOp -
Throws:
AxisFault

getResponseMessageContext

public MessageContext getResponseMessageContext()
Get the MessageContext of the response

Returns:
message context