What is the best practise for passing objects from and to webservices?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ilyas

    What is the best practise for passing objects from and to webservices?

    Hi all

    What are the best practises for passing custom objects to and from
    from services? In particular:

    1)Should datasets be passed, or custom objects be passed?
    2)When it comes to passing collections of objects what options are
    there? Should datasets be used here or should a generic list
    collection be used instead?

    Many thanks
  • William Ryan

    #2
    Re: What is the best practise for passing objects from and to web services?

    The answer to both really depends on a lot of things. I would say though
    that from my observation, the consensus is to shun using datasets in web
    services. One of the main reasons is interoperabilit y - you'll either have
    to modify the xml in the dataset so that it's easily consumed or live with
    the fact that non-dotnet clients are going to have some problems.

    Here are a few thoughts you'll find useful





    The answer to the second one is very similar to the first one - at least the
    implication are the same.


    "Ilyas" <ilyas@igsoftwa resolutions.co. ukwrote in message
    news:d357071b-d819-4c0a-8922-f7eddeb603f9@56 g2000hsm.google groups.com...
    Hi all
    >
    What are the best practises for passing custom objects to and from
    from services? In particular:
    >
    1)Should datasets be passed, or custom objects be passed?
    2)When it comes to passing collections of objects what options are
    there? Should datasets be used here or should a generic list
    collection be used instead?
    >
    Many thanks

    Comment

    Working...