|
-
Apr 17th, 2006, 11:10 AM
#11
Thread Starter
Frenzied Member
Re: [RESOLVED] Problems when returning objects from webservice
Hi!
Thanks for the reply
What I mean is that the business objects in this kind of application shouldnt have any CRUD methods, but should rather be used as a mean of "boxing" the information, like a basic struct. Why?? Well, because you face a number of difficulties if you want to marshal business objects from one app domain to another... Lets say we have this scenario:
ASP.NET web app on server A
ASP.NET webservice order-provider on server B
The DAL and the business objects are deployed on both server A and B
If you press a button in the webapp to save an order, you create a new order object on server A, now you need to marshal it to server B to persist it to the data layer. This wont work because the Webservice isnt't familiar with this object, it only know the objects in the reference.vb file. And if you try to cast it you will get an error...
When I have worked with custom objects and webservices I have had nothing but trouble... But Generics seem to work better marshaling from one app domain to another through webservices...
/Henrik
Last edited by MrNorth; Apr 17th, 2006 at 01:33 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|