Web Services Return Types? RRS feed

  • Question

  • User1696511887 posted

    I'm just getting started with web services and have a few questions.  Almost all of the web service examples I have seen are part of a .NET project (presentation and web service layers are combined).  I found one article that showed how to create a web reference to another service and it worked great in Visual Studio.

    If I were to create a web service that will be consumed by php, asp, .net, java, etc., what is the ideal way to transfer data between the web service and the client apps?

    For example, if I was in the administrative interface and wanted to return a list of Countries and their properties [Country(ID, Abbr, Name, ShipTo, Active)]... Can I return a generic list of countries (e.g. IList <Country>), should I return it as a .NET DataSet/DataTable, or as something else?  How do asp/php/java know what a collections/DataSets/DataTables look like?  How would they pass the information back?


    Wednesday, January 10, 2007 1:08 PM


All replies