• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with posting data from one servlet to another servlet in a different application

 
Ranch Hand
Posts: 41
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Java Ranch,

I am trying to post some data from my servlet to another servlet which resides in another application and both applications are placed in same server.

As i am using org.apache.commons.httpclient.HttpClient; object to communicate between the servlets in different applications.

i'll explain the scenario what i am trying to do.

I have two applications applicationA and applicationB(Both are deployed in same server.)

Now i am trying to comunicate with a servletB in appB from a servletA in appA.
As of now i recieving the response from servletB to servletA.

BUt i need to use the data which is sent frm servletA to servletB, and give the response from servletB based on the data recieved from servletA.
I am not able to recieve the data from servletA so i am unable to do validation on the data recieved from servletA,

can you please let me know how i can over come this scenario.

If possible let me know how to send a string object or an hashmap object from servletA to servletB

Thanks in Advance,
Gopi Chand Maddula



 
Ranch Hand
Posts: 754
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I believe that this link might help you. You should search for "consuming java webservice".

http://www.codeproject.com/KB/java/edujini_webservice_java.aspx


 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic