|
-
Jul 11th, 2005, 09:11 AM
#1
Thread Starter
Addicted Member
Webservices passing custom object
Hi,
if I create an object with a various things like functions and pass via/through a webmethod it doesn't seem to to include the function(s). Can I do this somehow - are there other restriction?
Cheers.
-
Jul 11th, 2005, 02:19 PM
#2
Re: Webservices passing custom object
No, you cannot provide methods in web services; it is designed to only allow the transfer of data. Perhaps a better alternative is to look into .net remoting, where you can remotely instantiate and invoke methods in objects.
-
Jul 12th, 2005, 04:32 AM
#3
Thread Starter
Addicted Member
Re: Webservices passing custom object
Yes I feared as much. Remoting seems more complicated so I wished to avoid it as I need to consider the abilities of other team members.
Also, when the transport mechanism is http over internet (mainly broadband but in a few cases 56K dialup) over VPN - how would this affect the choice between webservices or remoting?
Thanks.
-
Jul 12th, 2005, 04:37 AM
#4
Thread Starter
Addicted Member
Re: Webservices passing custom object
Also, I guess using ws means that if you wished to have the interface code interact with business objects the business layer would have to reside physically on the client (this is a windows client app).
-
Jul 12th, 2005, 12:15 PM
#5
Re: Webservices passing custom object
Not necessarily - if you place your business logic in a tier behind the web service, that should solve your dilemma... Of course, that does increase the network usage.
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
|