There is an error in XML document

J

Jeff

Hello
I am creating a web client in c#.
I use the "Add a Web Reference" wizard to read a WSDL file, then I
simply call the method for the remote service.

I get the floowing error returned when I make the call.:
There is an error in XML document (1,454)
The source of the error is System.Xml

How do I know what xml it is referring to, the request it is trying to
build or the responce coming back. I suspect the problem is the soap
message coming back from the server, but have no way of knowing for
sure.

Also, it seems that there must be a lot that goes on to de-serialize
the XML file that is returned from a web service. Isn't there anyway
to get any closer to the returning file to see the xml or see what it
is exactly that is triggering an error?

Thanks
Jeff
 
S

S.M. Altaf [MVP]

Jeff,

Is the web method returning a custom class, that you may not have serialized properly?

-Altaf




--------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com
Hello
I am creating a web client in c#.
I use the "Add a Web Reference" wizard to read a WSDL file, then I
simply call the method for the remote service.

I get the floowing error returned when I make the call.:
There is an error in XML document (1,454)
The source of the error is System.Xml

How do I know what xml it is referring to, the request it is trying to
build or the responce coming back. I suspect the problem is the soap
message coming back from the server, but have no way of knowing for
sure.

Also, it seems that there must be a lot that goes on to de-serialize
the XML file that is returned from a web service. Isn't there anyway
to get any closer to the returning file to see the xml or see what it
is exactly that is triggering an error?

Thanks
Jeff
 
J

Jeff

It is certainly possible that the soap message being received is not
serialized correctly. It comes from a PHP/NuSoap web service.

My biggest concern as I undertake this project is the inability to get
more information from the C# proxy class that handles this call. It
does not offer any clues as to what causes an error.
Is there some way to "get inside" of what C#/.NET is doing?

Thanks again
Jeff
 
J

Jeff

Mel
I am looking at this tool and may use it. Fiddler however, runs
outside of the VS IDE environment, is that correct? If that is the
case, I will have to look at the XML that I am getting from my server
and try to figure out what is incorrect.

There still isn't any other way to stop, catch or see the processing
of the file within VS?

Thanks again
Jeff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top