Passing objects to Web Services
I'm just learning Web Services and have had some of my preconceptions wiped out in recent days. Here is what I'm wanting to do...
I would like to create a custom class (MyClass) and have it stored in a seperate assembly. I would like for my client application to reference that assembly and work with MyClass before connecting with my Web Service. I would also like my Web Service to reference that assembly (server side). Ideally, I want to pass MyClass as an object to a Web Method as a parameter.
When I first tried this, I got the 'Cannot implicitly convert....' errors during compile. I then tried boxing/unboxing them, and passing it as a System.Object object, and that gave me Xml Serialization errors.
Can anyone tell me if what I'm trying to do is possible?
The simple solution here would be to have my client app reference the class FROM the Web Service, but this would require the user to be connected, which isn't a luxury I can guarantee until they are ready to submit (pass the object).
-James