Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

posting data to servlet from Webservice

 
Vek Bedekar
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic