New Message on dotNET User Group Hyd

Business Entity (custom object) and Webservices

Reply
  Reply to Sender   Recommend Message 1 in Discussion
From: sndshreeman

 
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

View other groups in this category.

Click Here!
Also on MSN:
Start Chatting | Listen to Music | House & Home | Try Online Dating | Daily Horoscopes

To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings.

Need help? If you've forgotten your password, please go to Passport Member Services.
For other questions or feedback, go to our Contact Us page.

If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list.
Remove my e-mail address from dotNET User Group Hyd.

Reply via email to