Home All Groups Group Topic Archive Search About

Cannot POST to .XML page

Author
25 Nov 2005 3:55 AM
clevrmnkey
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

Author
25 Nov 2005 10:29 AM
John Timney ( MVP )
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

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

<clevrmn***@gmail.com> wrote in message
Show quoteHide quote
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
>

Bookmark and Share