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.
Win a copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Asynchronous Web Service

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could anyone please explain how to develop asynchronous webservice using Spring framework?
Thanks in advance.
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
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?
Best wishes!
 
Geevee Joseph
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
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.

As far as I know, there is no support for asynchronous clients with Spring WS. There is a workaround, see this thread: http://forum.springsource.org/showthread.php?t=54887
Do correct me if I am wrong!
Best wishes!
 
Geevee Joseph
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ivan for the response.
 
We noticed he had no friends. So we gave him this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!