File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes JAX-WS Asynchronous Web Service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "JAX-WS Asynchronous Web Service" Watch "JAX-WS Asynchronous Web Service" New topic
Author

JAX-WS Asynchronous Web Service

Mat Anthony
Ranch Hand

Joined: May 21, 2008
Posts: 236
Hi All,
I'm trying to create a client that will make an asynchronous call to a spring-ws. I have read that spring-ws work synchronous and asynchrounous.
I have looked at using a WebServiceMessageCallback within the client as follows:-



But every time I call the above code I get the following error:-
No endpoint mapping found for [SaajSoapMessage]

If I call the following from my client without the call back handler it works, but synchronous.



Has anybody got any ideas?

Mat
Mat Anthony
Ranch Hand

Joined: May 21, 2008
Posts: 236
Hi All,
can somebody explain if WebServiceTemplate support asynchronous invocation. Im trying to write a client that will call a JAX-WS webservice. I'm trying to enable the client to have some sort of callback handler that will
be called by the web service once it has completed the clients request. The web service could take 2 to 3 min to process so I dont want the client stuck waiting for a response during that time.
I have tried using webServiceTemplate.marshalSendAndReceive(request, new MyCallBackHandler()) but it seems to call the call back handler first and then go on to call the web service.
Not sure what I'm doing wrong Has anybody done this before or got any ideas

Mat
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JAX-WS Asynchronous Web Service