|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axis2.clientapi.MEPClient
org.apache.axis2.clientapi.InOutMEPClient
This Class capture handling the In-Out type Method invocations. this provides the methods to do blocking and non blocking invocation. The basic API is based on the MessageContext and the more convients API is provided by the Call
Nested Class Summary | |
class |
InOutMEPClient.SyncCallBack
This Class act as the Callback that allow users to wait on the result |
Field Summary | |
protected CallbackReceiver |
callbackReceiver
This is used for the Receiving the Async Messages |
protected TransportListener |
listener
|
protected TransportInDescription |
listenerTransport
|
protected TransportOutDescription |
senderTransport
transport that should be used for sending and reciving the message |
protected long |
timeOutInMilliSeconds
|
protected EndpointReference |
to
The address the message should be send |
protected boolean |
useSeparateListener
Should the two SOAPMessage are sent over same channel over seperate channels. |
Fields inherited from class org.apache.axis2.clientapi.MEPClient |
doREST, doRestThroughPOST, isExceptionToBeThrownOnSOAPFault, mep, serviceContext, soapAction, soapVersionURI, wsaAction |
Constructor Summary | |
InOutMEPClient(ServiceContext serviceContext)
This accepts a ServiceContext, and the ServiceContext should have all the parents set in to it right Ideall this should be generated from a WSDL, we do not have it yet. |
Method Summary | |
void |
close()
Closing the Call, this will stop the started Transport Listeners. |
MessageContext |
invokeBlocking(OperationDescription axisop,
MessageContext msgctx)
This invocation done via this method blocks till the result arrives, using this method does not indicate anyhting about the transport used or the nature of the transport. |
void |
invokeNonBlocking(OperationDescription axisop,
MessageContext msgctx,
Callback callback)
This invocation done via this method blocks till the result arrives, using this method does not indicate anyhting about the transport used or the nature of the transport. |
void |
setTimeOutInMilliSeconds(long timeOutInMilliSeconds)
This will be used in invoke blocking scenario. |
void |
setTo(EndpointReference to)
|
void |
setTransportInfo(java.lang.String senderTransport,
java.lang.String listenerTransport,
boolean useSeparateListener)
Set transport information to the the Call, for find how the each parameter acts see the commant at the instance variables. |
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 |
protected long timeOutInMilliSeconds
protected TransportListener listener
protected TransportOutDescription senderTransport
protected TransportInDescription listenerTransport
protected boolean useSeparateListener
protected EndpointReference to
protected CallbackReceiver callbackReceiver
Constructor Detail |
public InOutMEPClient(ServiceContext serviceContext)
ConfigurationContextFactory efac = new ConfigurationContextFactory();
ConfigurationContext sysContext = efac.buildClientConfigurationContext(null);
// above line "null" may be a file name if you know the client repssitory
//create new service
QName assumedServiceName = new QName("Your Service");
ServiceDescription axisService = new ServiceDescription(assumedServiceName);
sysContext.getEngineConfig().addService(axisService);
ServiceContext service = sysContext.createServiceContext(assumedServiceName);
return service;
serviceContext
- Method Detail |
public MessageContext invokeBlocking(OperationDescription axisop, MessageContext msgctx) throws AxisFault
AxisFault
public void invokeNonBlocking(OperationDescription axisop, MessageContext msgctx, Callback callback) throws AxisFault
AxisFault
public void setTo(EndpointReference to)
to
- public void setTransportInfo(java.lang.String senderTransport, java.lang.String listenerTransport, boolean useSeparateListener) throws AxisFault
senderTransport
- listenerTransport
- useSeparateListener
-
AxisFault
public void close() throws AxisFault
AxisFault
public void setTimeOutInMilliSeconds(long timeOutInMilliSeconds)
timeOutInMilliSeconds
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |