Results 1 to 5 of 5

Thread: Webservices passing custom object

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2002
    Posts
    175

    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.

  2. #2
    Frenzied Member axion_sa's Avatar
    Join Date
    Jan 2002
    Location
    Joburg, RSA
    Posts
    1,724

    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.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Dec 2002
    Posts
    175

    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.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Dec 2002
    Posts
    175

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

  5. #5
    Frenzied Member axion_sa's Avatar
    Join Date
    Jan 2002
    Location
    Joburg, RSA
    Posts
    1,724

    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
  •  



Click Here to Expand Forum to Full Width