Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Receiving and returning XML data

Status
Not open for further replies.

JBalcerzak

Programmer
Sep 5, 2002
73
US
Hello,

I need to receive XML data from an Http POST and then return XML data via the response. I had setup an ASP.NET page to parse the data and render the returned XML. It works fine on my test server, but when I get it out in the real world, I'm getting 500 errors in my test client.

I guess I've got 2 questions, first, is this really the best way of doing this (i.e. should this really be a web service?) and is there any way I can get more detailed information on the error so I can tell what's going wrong?

Thanks,
Jeff
 
the page object is designed to render a webpage. xml, is not a webpage, it's just data so a web service, or even an http handler would be a better choice.

fiddler for IE and firebug for FF are great tools for debugging http problems. 500 is a server error, so adding logging to the server code will go a long way to determining the problem.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
xml, is not a webpage, it's just data so a web service, or even an http handler would be a better choice.
Not necessarily, we don't know if the XML in question is marked up as XHTML, in which case it could both be presented as a web page and/or used as data for use in an external system. I'd hazard a guess that it probably isn't being used in a web page, but from the info so far it hasn't been determined either way so a web page could be the correct implementation.

JBalcerzak, would you care to eleborate?

Mark,

Darlington Web Design[tab]|[tab]Experts, Information, Ideas & Knowledge[tab]|[tab]ASP.NET Tips & Tricks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top