.NET Framework Bookmark and Share   
 index > ASMX Web Services and XML Serialization > Retrieve XML Posted in Webservice
 

Retrieve XML Posted in Webservice

Hello

Someone know how retrive the xml posted in a web service?

I've been tried with:
StreamReader sr = new StreamReader(this.Context.Request.InputStream, Encoding.UTF8);
string data = sr.ReadToEnd();
Sincerely
Antony Acuna
Antony Acuna

I see. Have you looked at SOAP Extensions? http://msdn.microsoft.com/en-us/library/system.web.services.protocols.soapextension.aspx


Brain.Save() -- http://hyperthink.net/blog
Steve Maine

I don't understand what you are trying to accomplish; can you elaborate?


Brain.Save() -- http://hyperthink.net/blog
Steve Maine
I'm trying to save the xml sended to my webservice. Save it before serielized!

Thanks in advanced
Antony Acuna

I see. Have you looked at SOAP Extensions? http://msdn.microsoft.com/en-us/library/system.web.services.protocols.soapextension.aspx


Brain.Save() -- http://hyperthink.net/blog
Steve Maine

You can use google to search for other answers

Custom Search

More Threads

• Serialization of classes with automatic keyref
• "Attempted to read or write protected memory. This is often an indication that other memory is corrupt"
• How do you deploy a web service created using ASP.NET to a remote server
• problem with web services generated classes
• Intercepting XML transformation
• Context.RewtritePath problem
• Add XmlAttribute to simple type property?
• Mandatory Object Parameter gets serialized as optional in the WSDL (minOccurs/nillable/nullable problem)
• Authorize access to a webservice from date to date
• SSI not working on IIS6