I must send xml file with XMLHTTP request from my servlet to an asp page that elaborate my xml file
I know how to call the asp page from my servlet, but i don't know how to pass the xml file with XMLHTTP request
Someone can help me ??
Many thanks for your efforts
Massimiliano
-
servlet posting xmlhttp request (2 messages)
- Posted by: Massimiliano Ragazzi
- Posted on: February 18 2004 08:52 EST
Threaded Messages (2)
- servlet posting xmlhttp request by Jeroen van Bergen on February 18 2004 09:42 EST
- Jakarta Commons HttpClient by Sean Sullivan on February 18 2004 11:38 EST
-
servlet posting xmlhttp request[ Go to top ]
- Posted by: Jeroen van Bergen
- Posted on: February 18 2004 09:42 EST
- in response to Massimiliano Ragazzi
If you just want to send the XML in an HTTP POST request you can use the output stream of the HttpURLConnection. Write the XML to that stream and let the connection POST it to your target URL by calling the connect() method. -
Jakarta Commons HttpClient[ Go to top ]
- Posted by: Sean Sullivan
- Posted on: February 18 2004 11:38 EST
- in response to Massimiliano Ragazzi
Jakarta Commons HttpClient
http://jakarta.apache.org/commons/httpclient/
PostXML.java
http://cvs.apache.org/viewcvs/jakarta-commons/httpclient/src/examples/PostXML.java