How to handle an XML response?

Hi guys, I now you can help me. I'm making a POST using a form on classic ASP to a company who processes online transactions, specifically Neteller. My problem is that actually I don't know how to handle their response.

They send me and xml response telling me if the transaction was approved or not, but how can I load this response to a variable in order to make the update to my MS-SQL database Where should the code for handling this response be, on the same page where I have the Form or on a different ASP page If it goes on the same page it goes before the Form declaration making a kind of validation

ACTION of my form points to https://www.neteller.com/gateway/netdirectv4.cfm

If this is not the right place for this kind of questions please let me know where I can go.

Thanks in advance.



Answer this question

How to handle an XML response?

  • Vegethalia

    the part about XML is correct but this forum is about XML .Net, If you were to do this is ASP.Net net , then you could use System.Net.WebRequest object,

    <code>

    HttpWebRequest request = WebRequest.Create("url") as HttpWebRequest;

    </code>

    then get the response as stream object , you have to choice either using XmlReader or XmlDocument, my recommended approach is using XmlReader, use XmlReader.Create(responseStream) then you could read all elements looking for those of your interest


  • n y n--d8bn pr95y6

    For ASP.NET-related questions, please use http://forums.asp.net/.
  • How to handle an XML response?