473,410 Members | 1,873 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,410 software developers and data experts.

(500) Internal server error ReadXml

I have a .net web service that when I call using http returns this auto
format xml:

<string>
<coverage memkey="001" hplan="hmo" effdt="1999-10-01T00:00:00"
termdt="1999-12-01T00:00:00" />
</string>

The below code worked when the code was a local object method, however
now as a web service web method it gives me this error:

(500) Internal server error on the ReadXml line
DataSet myDataSet2 = new DataSet();
myDataSet2.ReadXml("http://localhost/xx/jcp.asmx/coverage");
DataList6.DataSource = myDataSet;
DataList6.DataBind()

Am I using ReadXml incorrectly? is the web service address formatted
incorrecty? Is the issue that the xml is now encapsulated(correct
term?) with <string>?

Thanks.

Sep 23 '06 #1
1 1582
Is this still true under vs.net 2005 asp.net 2.0 ???
<clip>
To consume the web service, you must first create a proxy class by
using the following command (in your command prompt):

wsdl "http://localhost/hello.asmx" /out:hello.cs

After that, you will find a file hello.cs in the current directory
created by the wsdl utility, which come with the .NET Framework. To
consume it, you must compile it as a DLL:
csc hello.cs /t:library /out:hello.dll /r:System.Web.Service.dll
/r:System.Xml.dll

Remember to reference the System.Web.Service.dll and System.Xml.dll
libraries.
</clip>
we*******@1stmiami.com wrote:
I have a .net web service that when I call using http returns this auto
format xml:

<string>
<coverage memkey="001" hplan="hmo" effdt="1999-10-01T00:00:00"
termdt="1999-12-01T00:00:00" />
</string>

The below code worked when the code was a local object method, however
now as a web service web method it gives me this error:

(500) Internal server error on the ReadXml line
DataSet myDataSet2 = new DataSet();
myDataSet2.ReadXml("http://localhost/xx/jcp.asmx/coverage");
DataList6.DataSource = myDataSet;
DataList6.DataBind()

Am I using ReadXml incorrectly? is the web service address formatted
incorrecty? Is the issue that the xml is now encapsulated(correct
term?) with <string>?

Thanks.
Sep 23 '06 #2

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

Similar topics

10
by: | last post by:
I am accessing the same error-containing ASP page on an ISP server using w2k IE6 but with different effect. On the first computer I get several line of HTML outputed by ASP, shown correctly by...
5
by: Ben | last post by:
hi when I try to excecute an ASP (either JS or VB) script to say, access a database record, I get an Internal Server Error HTTP 500.100 Why? and HOW CAN I FIX THIS? Thanks
1
by: errorQuest | last post by:
Hi There, I have a problem with the IIS running. Whenever I try to ru http://localhost/aaa.asp i got this error "HTTP 500-Internal Serve Error". I use very simple code in aaa.asp. I try to look...
6
by: Damien Sawyer | last post by:
Hello - I'm having a serious problem with IIS on Windows XP pro. Whenever I try to run ASP pages, I get HTTP 500 - Internal server error This behaviour happens identically, on two 'totally...
8
by: Rod | last post by:
I have been working with ASP.NET 1.1 for quite a while now. For some reason, opening some ASP.NET applications we wrote is producing the following error message: "The Web server reported...
4
by: jf li | last post by:
I have a Asp.net web application and a Asp.net Web service application. The Web application is using HtmlInputFile to get a 50M size of file selected by end user, read the data of this file and...
1
by: webmaster | last post by:
I have a .net web service that when I call using http returns this auto format xml: <string> <coverage memkey="001" hplan="hmo" effdt="1999-10-01T00:00:00" termdt="1999-12-01T00:00:00" />...
2
Frinavale
by: Frinavale | last post by:
I thought it would be nice to share the solution to my IIS headache with the rest of the world. I have developed a web application that has been distributed. Upon installing my application, some...
3
by: guillaume.braux | last post by:
Hello, I am running WS2008 + IIS7 + FASTCGI + ZendCore. I have not modified the default ZendCore php.ini configuration file. Actualy, any kind of PHP error, warning or notice gives me...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.