My suggestion would be to take the generated wsdl from the service and run the 
wsdl2java with the -asyncMethods switch on the wsdl and make sure you either 
use the generated SEI directly or at least make sure the method signatures and 
such directly match what is there.   

Dan



> On Jan 6, 2015, at 6:41 PM, gido <[email protected]> wrote:
> 
> Dear all,
> 
> I have a little problem with the async communication. In particular I am
> trying to implement async calls. My idea is to provide a synchronous method
> as well as its async implementation. In such a way I can decide which method
> is suitable for me according to the specific application context. To do
> that, I have followed the Apache CXF documentation and the tutorials:
> 
> http://www.javatips.net/blog/2014/03/asynchronous-web-service-using-cxf
> http://www.javatips.net/blog/2014/03/cxf-asynchronous-client
> 
> However when I try to call the async method I always receive the following
> exception:
> 
> Exception in thread "main" javax.xml.ws.WebServiceException: Could not find
> wsdl:binding operation info for web method testAsync.
>       at 
> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:126)
>       at com.sun.proxy.$Proxy62.testAsync(Unknown Source)
>       at
> pt.uninova.proseco.async.AsyncTestMainClass.main(AsyncTestMainClass.java:46)
> 
> If I try to call the synch implmentation I have no problem.
> 
> I have checked the generated wsdl (I am using the Java first approach) and I
> see that no async operation is included. 
> 
> Do you have any sugestion?
> 
> BR 
> 
> Giovanni
> 
> 
> 
> --
> View this message in context: 
> http://cxf.547215.n5.nabble.com/Async-Calls-tp5752830.html
> Sent from the cxf-user mailing list archive at Nabble.com.

-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to