Demonstrate the ability to perform dual channel invocations through Synapse (asynchronous notification).
Execute the client as follows.
This example invokes the same 'getQuote' operation on the SimpleStockQuoteService using the custom client which uses the Axis2 ServiceClient API with useSeparateListener set to 'true', so that the response is coming through a different channel than the one which is used to send the request. Note the following log thrown out by the sample client.
If you send your client request through TCPmon, you will notice that Synapse replies to the client with a HTTP 202 acknowledgment when you send the request and the communication between Synapse and the server happens on a single channel and then you get the response back from Synapse to the client callback in a different channel (which cannot be observed through TCPmon).
Also you could see the wsa:Reply-To header being something like http://localhost:8200/axis2/services/anonService2 which implies that the reply is gpoing on a different channel listening on the port 8200. Please note that it is required to engage addressing when using the dual channel invocation because it requires the wsa:Reply-To header.