This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes posting data to servlet from Webservice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "posting data to servlet from Webservice" Watch "posting data to servlet from Webservice" New topic
Author

posting data to servlet from Webservice

Vek Bedekar
Greenhorn

Joined: May 31, 2010
Posts: 1
Hi All,

Here is my requirement. Just wanted to verify with you all folks on my design and is it possible or not.

I will have a application, which will be exposing some services. My application will be provider of these webservices and these services will be called from external application(app A.). I have another application, which will be do actual processing of the data recieved from calling application. This application (app. B) will accept data in http post manner. Now, problem is I will recieve data as SOAP message on my webservice from app A, but since I need to post data as http request to app B for further processing. I would have a servlet (pooled servlet), which will post http request to app B. I need to invoke this servlet from my WS or downstream POJOs of WS to pass data to Servlet, which will create HTTP request for app B. app B processes data and gives back http response with results, which is required to be captured and passed further to app A. through same chain.

My app will consists of some WSs (exposed for app A), POJOs (Business Logic) and servlets (to interact with app B.). I have following questions;
1. Is this design fine ? If not, what are the alternatives for this ?
2. How to invoke servlet from WS ?

Vek.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: posting data to servlet from Webservice
 
Similar Threads
Web Service Objective Clarification
Question on Asynchronous web service call using document style.
How to convert simple Java Code into amazon's AMI
Clarification on servlet based web service end point.
Communication between two applications