Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Sending XML Data within HTTP Requests

843834Sep 24 2002 — edited Feb 8 2006
Hello,
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 8 2006
Added on Sep 24 2002
4 comments
219 views