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