XML & Web services: servlet posting xmlhttp request
I must send xml file with XMLHTTP request from my servlet to an asp page that elaborate my xml file
- Posted by: Massimiliano Ragazzi
- Posted on: February 18 2004 08:52 EST
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
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