473,387 Members | 1,455 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Cannot POST to .XML page

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

Nov 25 '05 #1
1 984
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

<cl********@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.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

Nov 25 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Joe | last post by:
I have an upload file operation in the web application. UploadForm.asp is the form, and UploadAction.asp is the form processing. //UploadForm.asp <FORM NAME="InputForm"...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
2
by: Tim Reynolds | last post by:
Team, When my web service throws an exception and I am debugging on my PC - I get the exception back in my browser fine. My web.config shows <customErrors mode="Off"/> and this is working well. ...
1
by: R.A.M. | last post by:
Hello, I have written an .aspx page which calls Calendar.aspx page to select birth date which should be assign to some text box control on first page. Here's the code of first page: Birthdate:...
7
by: php_mysql_beginer911 | last post by:
Hi .. hope someone will help i am trying to figure it out why i cannot post string "union select" every time i try to post data which content union and select .. the page doesn't get posted and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.