HighTechTalks DotNet Forums  

Serialized object?

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss Serialized object? in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
HockeyFan
 
Posts: n/a

Default Serialized object? - 06-22-2006 , 01:34 PM






I've gone through the process of serializing an object, using code that I've
seen used by several people on the web. I get an XMLdocument type that
appears to have all the items from my class in it. Once I have this XMLdoc,
how do I pass it to a webservice? I tried but the other end received
"nothing".
Before passing, I looked at the guts of the XMLdocument, and it has an
attribute of "nothing", but it has all the data in the innerxml and the outer.

Reply With Quote
  #2  
Old   
Dale
 
Posts: n/a

Default RE: Serialized object? - 07-08-2006 , 02:33 PM






You can't pass an XmlDocument to and from a web service. You can pass an
XmlNode. Get the root node of your object and pass that to your web service.

Alternatively, you can serialize your object to a string array containing
information to recreate each property on the other side of the wire.
--
Dale Preston
MCAD C#
MCSE, MCDBA


"HockeyFan" wrote:

Quote:
I've gone through the process of serializing an object, using code that I've
seen used by several people on the web. I get an XMLdocument type that
appears to have all the items from my class in it. Once I have this XMLdoc,
how do I pass it to a webservice? I tried but the other end received
"nothing".
Before passing, I looked at the guts of the XMLdocument, and it has an
attribute of "nothing", but it has all the data in the innerxml and the outer.

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.