• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Jeanne Boyarsky
Saloon Keepers:
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Piet Souris
Bartenders:

Asynchronous Web Service

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Ivan for the response.
 
Nothing? Or something? Like this tiny ad:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
reply
    Bookmark Topic Watch Topic
  • New Topic