I want to call a servlet residing in a websphere server through a java application. The servlet in turn would route my request to a webservice. The webservice is returning a SOAP output ( a string ). Now what i want basically is to transfer back this string to my calling application. How do I do this. Please send me some code snippet or any link which can serve as a starting point on this.
In order for your application to connect to the servlet, you will have to open up a HTTP socket to the URL of your servlet. A brief discription of the principles, and some sample code can be found here
Hi you are right in asking this question. Actually what I needed was a single point entry for all the webservices into my application server. Another point of contention was that one of my web service would take a long time in doing it's job. So I wanted to just initiate the service through the servlet and return back to the client and let the service take it's time. Can you suggest any thing which will run the webservice in the back ground. i know this is not the correct forum for this but since this has come up so I'm asking this. I can use the "invokeOneSWay" method but in it's API it is written that "NOTE: the return immediately part isn't implemented yet ".