Serialized object?

H

HockeyFan

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.
 
D

Dale

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.
 

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

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top