Hi,

I you just need to invoke one way operation, why do not use 
dispatch.invokeOneWay(T request) method for that?

Regards,
Andrei.

> -----Original Message-----
> From: Mulpuri, Krishna Sai [mailto:[email protected]]
> Sent: Montag, 10. Februar 2014 12:02
> To: [email protected]
> Subject: Query Regarding Async Calls using Dispatch API
> 
> 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

Reply via email to