Hi
I would like to discuss the following:-
The topic and area of problem is
1.passing custom object to webservice
2.intearfaced based remoting and webservice and the SOA recommendation
Now my view in passing custom object to webservice is that there should be option like remoting to pass custom objects to and from Webservices and Strictly speaking it is not supported directly as like remoting and interfaces.
Let say i have a custom dll and i am adding the reference to the same in both client app and webservice everythign is fine here.BVut when i am assign the object of the same from the proxy to our object in client it didnot allow as it didnot consider the object same from the same class when it come thru proxy.
Here i had 2 options use the proxy object's object only by using some thing like
localhost.websrvnm.clscustom proxy=new localhost.websrvnm.clscustom
and
localhost.clscustom obj =new localhost.clscustom
then obj=proxy.method (which return the class type)
However the same is fine with interface approach in remoting.The question is why it is not so in webservice while i made a search i found this answer which is much closer taht is
since the contact for webservice is wsdl which didnot understand the class we are providing the mismatch occurs.
Forget to add one line that if you modify the proxy generated you can make the same work that client and server now talk to each other but every time a webreference is get updated you need to modify the proxy again.
One more thing while passing array list and other thing we can make it work by assigning an attribute XmlInclude so that the same can be understoos by webservice.The xmlinclude however noit work here.
The great problem is let say i need to validate the business entity (cutom obj) in client code i donot want to go to server i need to manipulate at client and for db related ops i wannna go to srvr
what will you suggest for the best arch here???
any comments are welcome..
thanks
shreeman