thanks for the response. But The client in the link you have supplied is writing an XML output to the server after connecting to it. In my case that is not the issue.
The problem is that "I NEED TO SEND A HTTP REQUEST (by using an encoded URL). Bascially it would instantiate a servlet with the parameters that I have passed. Processes my request and send me a reply back. The reply being sent back is an XML file. Also this is a plain XML file and is not bound in SOAP envolope."
Hope someone can help me resolve this.
Joined: Mar 22, 2005
I think the problem is clear now - you need a servlet that reads some parameters in the URL and generates XML as response. Nothing too complicated about that. Where exactly are you stuck?
On the client side it might be sufficient to use the URL class, particularly the getContent method. Then you'll have the XML in a string and can use SAX or DOM to process it further.
I have the exact same code written in my class (ofcourse that was "parsed" from the XMLRPC Client ). I am even checking for the response code being sent back. I am getting a response code 200. But the input reader is not displaying the response. Heres the code for the buffer reader.
[ November 08, 2005: Message edited by: K Krishna Kishore ]
Joined: Aug 19, 2005
Seems InputStreamReader is a bit unpredictable if you do not initially specify a character set. This works:
[ November 08, 2005: Message edited by: Peer Reynders ]
K Krishna Kishore
Joined: Aug 09, 2005
thanks Peer for the help.....
I am running into exceptions though....When i try to hit a server with text data it works fine. But when i try to hit the test server to receive the XML file... it does keeps giving me the following exceptions: