|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axis2.client.MEPClient
org.apache.axis2.client.InOutMEPClient
This class captures the handling of In-Out type method invocations for both blocking and non-blocking calls. The basic API is based on MessageContext and provides more convenient APIs.
ServiceClient
Nested Class Summary | |
class |
InOutMEPClient.SyncCallBack
Deprecated. This class acts as a callback that allows users to wait on the result. |
Field Summary | |
protected CallbackReceiver |
callbackReceiver
Deprecated. This is used for the receiving the asynchronous messages. |
Fields inherited from class org.apache.axis2.client.MEPClient |
clientOptions, mep |
Constructor Summary | |
InOutMEPClient(ServiceContext serviceContext)
Deprecated. Constructs a InOutMEPClient from a ServiceContext. |
Method Summary | |
void |
close()
Deprecated. Closes the call initiated to the Transport Listeners. |
protected void |
configureTransportInformation(MessageContext msgCtx)
Deprecated. This gives chance to the derived class to configure its transport from the information injected by the user via options. |
MessageContext |
invokeBlocking(AxisOperation axisop,
MessageContext msgctx)
Deprecated. This method is used to make blocking calls. |
void |
invokeNonBlocking(AxisOperation axisop,
MessageContext msgctx,
Callback callback)
Deprecated. This method is used to make non-blocking calls and is independent of the transport. |
MessageContext |
send(MessageContext msgctx,
TransportInDescription transportIn)
Deprecated. Sends the message using a two way transport and waits for a response. |
Methods inherited from class org.apache.axis2.client.MEPClient |
addSOAPHeader, addSOAPHeader, addUserAddedSOAPHeaders, assumeServiceContext, 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 |
protected CallbackReceiver callbackReceiver
Constructor Detail |
public InOutMEPClient(ServiceContext serviceContext)
ConfigurationContextFactory efac = new ConfigurationContextFactory(); // Replace the null with your client repository if any ConfigurationContext sysContext = efac.createConfigurationContext(null); // above line "null" may be a file name if you know the client repssitory //create new service QName assumedServiceName = new QName("Your Service"); AxisService axisService = new AxisService(assumedServiceName); sysContext.getEngineConfig().addService(axisService); ServiceContext service = sysContext.createServiceContext(assumedServiceName); return service;
serviceContext
- Method Detail |
public void close() throws AxisFault
AxisFault
protected void configureTransportInformation(MessageContext msgCtx) throws AxisFault
MEPClient
configureTransportInformation
in class MEPClient
AxisFault
public MessageContext invokeBlocking(AxisOperation axisop, MessageContext msgctx) throws AxisFault
AxisFault
public void invokeNonBlocking(AxisOperation axisop, MessageContext msgctx, Callback callback) throws AxisFault
AxisFault
public MessageContext send(MessageContext msgctx, TransportInDescription transportIn) throws AxisFault
msgctx
- transportIn
-
AxisFault
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |