Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / March 2005

Tip: Looking for answers? Try searching our database.

How does one debug .NET deserialization problems?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
frustratedWithDotNet - 01 Mar 2005 00:21 GMT
Why does .NET not issue messages or throw exceptions if it doesn't like
something in the response from a web service?? I am getting a response
object, but an array of custom objects within the response is null instead of
being populated. The SOAP response from the service looks good and I cannot
see anything wrong with the WSDL or XML schema. How do I get .NET to tell me
what it doesn't like? Is there a way to turn on some kind of tracing or
logging, or to get it to allow me to step into the deserialization code?  
Dilip Krishnan - 01 Mar 2005 01:06 GMT
You probably can in different ways... but I'd suggest u first use
tcpTrace [0] and check the soap messages and see if they conform to
schema (atleast visually); namespaces are right, elements are right.

[0] - http://www.pocketsoap.com/tcptrace/

> Why does .NET not issue messages or throw exceptions if it doesn't like
> something in the response from a web service?? I am getting a response
[quoted text clipped - 3 lines]
> what it doesn't like? Is there a way to turn on some kind of tracing or
> logging, or to get it to allow me to step into the deserialization code?  

Signature

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com

frustratedWithDotNet - 01 Mar 2005 01:25 GMT
Thanks, but I already did that. I have a trace tool for the XML, and it looks
fine and conformant to the schema. This is document literal, BTW. No weird
soap encoding nonsense.

> You probably can in different ways... but I'd suggest u first use
> tcpTrace [0] and check the soap messages and see if they conform to
[quoted text clipped - 9 lines]
> > what it doesn't like? Is there a way to turn on some kind of tracing or
> > logging, or to get it to allow me to step into the deserialization code?  
Dilip Krishnan - 01 Mar 2005 01:58 GMT
Out of curiosity, did you also try taking your xml trace and writing a
small lil console app that tries to deserialize the trace that you have
into the expected type?

> Thanks, but I already did that. I have a trace tool for the XML, and it looks
> fine and conformant to the schema. This is document literal, BTW. No weird
[quoted text clipped - 13 lines]
>>>what it doesn't like? Is there a way to turn on some kind of tracing or
>>>logging, or to get it to allow me to step into the deserialization code?  

Signature

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com

frustratedWithDotNet - 01 Mar 2005 02:03 GMT
No, how does one manually invoke deserialization for a fragment of XML?

> Out of curiosity, did you also try taking your xml trace and writing a
> small lil console app that tries to deserialize the trace that you have
[quoted text clipped - 17 lines]
> >>>what it doesn't like? Is there a way to turn on some kind of tracing or
> >>>logging, or to get it to allow me to step into the deserialization code?  
Dilip Krishnan - 01 Mar 2005 02:42 GMT
Use the XmlSerializer class...

> No, how does one manually invoke deserialization for a fragment of XML?
>
[quoted text clipped - 19 lines]
>>>>>what it doesn't like? Is there a way to turn on some kind of tracing or
>>>>>logging, or to get it to allow me to step into the deserialization code?  

Signature

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.