473,791 Members | 2,725 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

(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.Read Xml("http://localhost/xx/jcp.asmx/coverage");
DataList6.DataS ource = myDataSet;
DataList6.DataB ind()

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

Thanks.

Sep 23 '06 #1
1 1603
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.Se rvice.dll
/r:System.Xml.dl l

Remember to reference the System.Web.Serv ice.dll and System.Xml.dll
libraries.
</clip>
we*******@1stmi ami.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.Read Xml("http://localhost/xx/jcp.asmx/coverage");
DataList6.DataS ource = myDataSet;
DataList6.DataB ind()

Am I using ReadXml incorrectly? is the web service address formatted
incorrecty? Is the issue that the xml is now encapsulated(co rrect
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
10825
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 the browser, followed by a descriptive error message: Microsoft VBScript runtime error '800a000b' Division by zero followed by the number of the error-making line
5
8480
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
5106
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 for the Sho Friendly http error messages, but it doesn't give me another othe error beside "HTTP 500-Internal Server Error". Does anyone know what i happening here? I use Window XP with IIS 5.1 -
6
1797
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 independent' machines. I am trying to run Visual Studio 2003, however, the problem occurs before any of this development software (or the CLR) is even installed.
8
10016
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 the following error when attempting to create or open the Web project located at the following URL: 'http://localhost/WebApplication1'. 'HTTP/1.1 500 Internal Server Error'."
4
6213
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 pass the data to the web service. I already modified both web.config files and changed maxRequestLength to 60000(kb). When I debug the upload process, it seems the Web application can get the 50M file and read the data without problem, but when the...
1
1877
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" /> </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:
2
12303
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 people encountered a "500 Internal Error" and of course blamed my software immediately (and got frustrated when uninstalling/reinstalling my software didn't fix the problem). Finally I was able to take a look at one of these computers and discovered...
3
5956
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 immediately a IIS 500 Error (Internal Server Error). It is a good thing in production environnement. For debuging purposes, I want temporary to be able to see PHP warnings and errors embedded on the html page.
0
9669
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9515
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10426
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9993
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7537
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6776
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5430
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3713
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2913
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.