Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: How to receive XML as a STRING through POST in an ASP Page ?


Message #1 by "Shahid M. Syed" <shami_shah@h...> on Mon, 7 Oct 2002 12:28:43 +0500
Hello there...

I'm working on a part of application in VB6 which sends/receives data in XML to/from ASP pages.

This example function receives the XML data, username and password as parameters and returns the XML response from the ASP.

Public Function SendClaims(ByVal vsXML As String, ByVal vsUsername As String, ByVal vsPassword As String) As String

    Dim objXMLHTTP As MSXML2.ServerXMLHTTP40
    Set objXMLHTTP = New MSXML2.ServerXMLHTTP40
    objXMLHTTP.open "POST", "http://ebusiness.xyz.com/claims.asp", False, vsUsername, vsPassword
    objXMLHTTP.send vsXML
    SendClaims = objXMLHTTP.responseXML.xml
       
End Function

Now I want to test this on my IIS 5 at http://buzzy2k/webedi/claims.asp. Where "buzzy2k" is my pc name and "webedi" is a virtual
directory.
In claims.asp page I've tried to collect the sent XML by request("vsXML") and "request.form("vsXML"), but still no results. I've
also tried the "RequestSniffer.asp" from Beginning ASP3 still no data received. And I couldn't get serverxmlhttp object to receive
the sent XML.

What would be the appropriate method to catch the above data in ASP page?
Please can you help me ?

Thanking you in advance
 
Shahid Syed


  Return to Index