(500) Internal server error ReadXml

  • Thread starter Thread starter webmaster
  • Start date Start date
W

webmaster

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>?

How can I troubleshoot this?

Thanks.
 
Do I still need to do the wsdl.exe external compile thingie? I thought
vs.net 2005 did something to make that transparent?
 
Back
Top