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.
Printable View
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.
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.
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.
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).
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.