Would it be easier to build an intermediate web service that acknowledged the client immediately and used messaging to pass the asynchronous transaction to a one-way message processor.

On 10/02/2014 6:01 AM, Mulpuri, Krishna Sai wrote:
I want to make asynchronous client request to a webservice using dispatch api. 
I tried both polling and callback methods but in both cases i need to generate 
stubs and create a async handler and pass it.

For Ex :

I have to create AsyncHandler by passing the generated response type

public class TestAsyncHandler implements AsyncHandler<GreetMeSometimeResponse> {

     private GreetMeSometimeResponse reply;

................
................

}

And in client I have to pass the async handler as an extra argument to 
invokeAsync method
dispatch.invokeAsync(msg, asynchandler)



but my requirement is to call the web service asynchronously without generating 
stubs and it is just one-way call(no need for client to wait for response), i 
didn't find any api in cxf for this requirement.
it would be great help if someone can help me out !


Thanks
Sai




--
Ron Wheeler
President
Artifact Software Inc
email: [email protected]
skype: ronaldmwheeler
phone: 866-970-2435, ext 102

Reply via email to