Sending XML Data within HTTP Requests
843834Sep 24 2002 — edited Feb 8 2006Hello,
I am trying to find a way to send an xml file between two servlets. I have been researching this heavily through articles and examples on the internet and have not found any usefull information. One article that looked like it would be helpfull was:
http://developer.java.sun.com/developer/qow/archive/84/index.html
This example however, does not work. When I create the two classes from exactly copying the code I get the following error when running the client class:
java.io.FileNotFoundException:
Does any one know why this is?
One problem i had was that the article does not give any information on how to run the example. I guessed that the url my client should connect to would be http://hostname/servlet/XmlServlet . although, there is no indication of this in the article.
Or does anyone have any working example of how to send an xml file through http?
Thanks,
Ryan