I have a simple question about passing custom objects via a webservice.
I created a class library called UserLibrary, compiled it and created a dll for it.
Then I created a web service in another project and referenced this dll.
Now I am passing in and returning an object from the dll in my WebMethod
When I consume the WebMethod in the client, in order to pass these custom objects to the service, I have to add a reference to the dll in the client and it works fine.
Question is what if the client didnt have access to the dll, then the web service couldn't be used? Should we be passing and returning custom objects in our WebMethods or is it a better idea to simply return and pass simple objects like strings instead?