I desperately need some help on this. I have a website that will recieve
votes via sms (text messages). The person voting will send a message to a
certain number which will then forward on an xml post to an address I have
specified.
I've sent up an aspx file at this point with a form on it. I know how to
look through the xml and get out the data I need but what I need help with is
how I read that XML post in the first place. How to I get the aspx file to
capture the XML post and then allow me to read through it?
Cheers
> I've sent up an aspx file at this point with a form on it. I know how to
> look through the xml and get out the data I need but what I need help with is
> how I read that XML post in the first place. How to I get the aspx file to
> capture the XML post and then allow me to read through it?
I don't see why you would have a form in an aspx page if there is
someone posting XML to that page but as for processing posted XML such a
page is in instance of the class System.Web.UI.Page and as such has
members like the Request property which gives you a
System.Web.HttpRequest instance. What you need then is the InputStream
property to get a Stream you can use any way you need, e.g. use it as
the input to an XmlTextReader or as the input to an XmlDocument.Load or
any other XML (or non-XML if wanted/neded) API in .NET taking a stream.

Signature
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/