Two Laptop Bag
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
JavaRanch » Java Forums » Java » Web Services
Bookmark "posting data to servlet from Webservice" Watch "posting data to servlet from Webservice" New topic

posting data to servlet from Webservice

Vek Bedekar

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 ?

I agree. Here's the link:
subject: posting data to servlet from Webservice
It's not a secret anymore!