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 Can WebService response be HTTP? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Can WebService response be HTTP?" Watch "Can WebService response be HTTP?" New topic

Can WebService response be HTTP?

Vis Deo
Ranch Hand

Joined: Jul 02, 2004
Posts: 41
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.

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13035
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)
I agree. Here's the link:
subject: Can WebService response be HTTP?
It's not a secret anymore!