Discussions

XML & Web services: servlet posting xmlhttp request

  1. servlet posting xmlhttp request (2 messages)

    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

    Threaded Messages (2)

  2. 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.
  3. Jakarta Commons HttpClient[ Go to top ]

    Jakarta Commons HttpClient

    http://jakarta.apache.org/commons/httpclient/

    PostXML.java

    http://cvs.apache.org/viewcvs/jakarta-commons/httpclient/src/examples/PostXML.java