Win a copy of Spring Boot in Practice this week in the Spring 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Can WebService response be HTTP?

Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have situation - where user will start request in Asynchronous mode - may be within windows based client server application.

This request needs to launch real-time web application at specific workflow using the information send through Asynchronous request.

I am thinking of following design - I would like to know how feasible it is

1. Client application will send Webservice request.
2. Webservice will be processed with determining originating machine/ip address. And that will be passed to the Web application.
3. Webapplication should process this request and should send the response through HTTP protocol ot the originating ip
4. User can continue his work in the response web app.

Author and all-around good cowpoke
Posts: 13078
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If I understand you correctly, you are asking if a web application can take a regular HTTP request, access a web service to get some data, and format that into the response. All of this in a single request-response cycle.

If that is correct, sure - a web service request is no different from a database request or any other resource grabbing action a web application may need to do.

If you are not talking about a single HTTP request-response cycle then things get more complicated.

(I just wrote an article about using JSP to grab an RSS feed - a simple web service)
    Bookmark Topic Watch Topic
  • New Topic