This week's book giveaway is in the Agile and Other Processes forum. We're giving away four copies of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java and have Dr. Raoul-Gabriel Urma & Richard Warburton on-line! See this thread for details.
Do you want a web service that processes requests asynchronously or a client that sends requests and receives responses asynchronously?
Is there any particular part of the Spring framework you want to use?
I'm pretty new to Spring WS. Have worked on client side Spring WS using WebServiceTemplate.
I didnt get the actual meaning in your comment - 'Do you want a web service that processes requests asynchronously or a client that sends requests and receives responses asynchronously?'
What I'm looking for is a client which can asynchronously use a service. Shouldn't it be a asynchronous WS to achieve this?
What I want to know is whether Spring supports this and steps involved in development.
posted 9 years ago
No, the web service itself does not have to be asynchronous in order to be accessed by an asynchronous client.
If you were to use pure JAX-WS, you add a file like the following using the -b option with the wsimport command to create client artifacts that allow you to obtain a client that can asynchronously access a synchronous web service:
This will result in the generated service interface containing methods that return a Future object that can be polled for a result.