|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Cannot POST to .XML pageI am trying to post some data to an XML page which is controlled by
SQLXML and returns XML from a stored procedure. However, when I build the post request within ASP.NET and point it at the page it gives me a Runtime Error 512. It does not do this if I point at an HTML page, and the POST works fine for other pages (I basically copied it from the gotdotnet 1.1 tutorial). When I couldn't get this to work I tried the IP*Works trial tools and got exactly the same problem, so I'm assuming that the problem lies in the Framework rather than in the language implementation. Has anyone else run into this, and especially, has anyone else managed to get around this? Thanks, Andy Issuing a post request in asp.net usually requires you to have set the
content type correctly, for xml that would be req.ContentType = "text/xml"; See if this example can help you as it appears to be a working example of posting xml data. http://www.codeproject.com/Purgatory/XmlPost.asp -- Show quoteHide quoteRegards John Timney ASP.NET MVP Microsoft Regional Director <clevrmn***@gmail.com> wrote in message news:1132890920.492386.202380@g43g2000cwa.googlegroups.com... >I am trying to post some data to an XML page which is controlled by > SQLXML and returns XML from a stored procedure. However, when I build > the post request within ASP.NET and point it at the page it gives me a > Runtime Error 512. It does not do this if I point at an HTML page, and > the POST works fine for other pages (I basically copied it from the > gotdotnet 1.1 tutorial). When I couldn't get this to work I tried the > IP*Works trial tools and got exactly the same problem, so I'm assuming > that the problem lies in the Framework rather than in the language > implementation. > > Has anyone else run into this, and especially, has anyone else managed > to get around this? > > Thanks, > Andy >
Other interesting topics
How to add a small HTML table under a row of a GridView
Application["TotalPlayings"]++ doesn't work Source Control Products??? Downloading file from database Problem Running ASP.NET/ASP App Under VS 2005 ASP classic -> ASP.NET 2.0 how load one frame before another in aspx page The server tag is not well formed specifying a query string in an href dynamically Disabling Link Button Column in Datagrid |
|||||||||||||||||||||||