Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / XML / November 2005

Tip: Looking for answers? Try searching our database.

Reading an XML post in an ASP.NET web site

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
spudgun - 03 Nov 2005 23:53 GMT
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
Martin Honnen - 04 Nov 2005 14:29 GMT
> 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/


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.