Serialization problems between windows application and web service

J

Johan Krafve

Hello,
I have created a dll-file containing two classes, where one class displays
an arraylist which can contain several instances of the other class. I use
this dll-file both in a windows application and a web service to serialize
and deserialize data between a windows form and xml-files and between web
methods a sql server database.

Everything works great, except when I try to create an xml-file in the
windows form and then try to deserialize it to the object type in the
dll-file and then call a webmethod in the web service to save the data in the
database. The web sevice doesn't recognize the type of object being passed to
it, even though it references the same dll-file as the windows form.

The web-service has no problem of deserializing the xml-file itself, but I
want the windows form to deserialize it and then just pass over the object to
the web service by calling the web method.

Everyting is created in Visual Studio 2005 using C#.
 

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

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top