By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,480 Members | 1,164 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,480 IT Pros & Developers. It's quick & easy.

(500) Internal server error ReadXml

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.