"apondu" <ap****@gmail.comwrote in message
news:11**********************@d57g2000hsg.googlegr oups.com...
Hi,
This is Govadhan, i am a begginer for web services using c#.net. I
have written a small web service where in i have created a listview
item in the web service method and added some data to the listview
item. Now i have problem. I want this listview to be passed as a
return value to the calling program. can some one help me with how to
achieve this.
I want to return the listview item, can anyone say me is it possible
to convert this listview item to a object type and thn return it. If
this can be done can anyone provide me with the information on how to
achieve this.
In general, you shouldn't return platform-specific types from a web service.
That will prevent the web service from being useful on any other platform.
Even if you believe today that you will only ever use it with Windows,
things change, and you may need to use the same web service from, for
instance, a Perl script on Windows.
That said, you should consider returning the data you placed into the
ListView item instead of the ListView item itself. Perhaps you could create
a struct containing the data items you use to populate the ListView item,
and return that instead. The client of your web service could then take that
data and use it to populate a client-side ListView.
John