File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "JAX-WS Asynchronous Web Service" Watch "JAX-WS Asynchronous Web Service" New topic

JAX-WS Asynchronous Web Service

Mat Anthony
Ranch Hand

Joined: May 21, 2008
Posts: 232
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 Anthony
Ranch Hand

Joined: May 21, 2008
Posts: 232
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

I agree. Here's the link:
subject: JAX-WS Asynchronous Web Service
Similar Threads
Question on Asynchronous web service call using document style.
How does client poll the interaction layer to get the result of WS invocation?
JAX-WS Async call
Asynchronous Web Service
calling web service from another web service logging