Cannot POST to .XML page

C

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
 
J

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top