Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > how return list values from web service

Reply
Thread Tools

how return list values from web service

 
 
scottrm
Guest
Posts: n/a
 
      01-05-2005
I am fairly new to web services and want to create a web service method in
asp.net which will return a fixed size list of values. I am not sure how to
proceed, I have seen some examples that return for example a dataset from a
web method but bearing in mind that the client who is accessing the web
service will not necessarily be using .Net or Microsoft technologies I don't
believe this would work in this case.
--
Scott
 
Reply With Quote
 
 
 
 
Erymuzuan Mustapa
Guest
Posts: n/a
 
      01-05-2005
well you correct, dataset object is not the best data container when you
think about interoperability, but other type of list is OK,
CollectionBase based works great as long as the containing ttype fully
XML serializable, this will translate to something like ArrayOf on the
wire(WSDL).
The better approach is of course to design the XML schema first before
writing a WebMethod(OK you can go all way to write your own WSDL), the
you can use XSD.exe to generate the types from XML schema, check out
WSContractFirst to enable you to this easily

http://www.thinktecture.com/Resource...t/default.html


Regards
Erymuzuan Mustapa

scottrm wrote:
> I am fairly new to web services and want to create a web service method in
> asp.net which will return a fixed size list of values. I am not sure how to
> proceed, I have seen some examples that return for example a dataset from a
> web method but bearing in mind that the client who is accessing the web
> service will not necessarily be using .Net or Microsoft technologies I don't
> believe this would work in this case.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Web Service doesn't return needed values AlBruAn ASP .Net Web Services 0 08-17-2007 04:06 PM
How can I remove XML tags from ASP.NET web service return values? DonaldN ASP .Net Web Services 1 02-17-2006 08:42 AM
InvocationTargetException when calling "new Service()" in Axis web service to call another web service Michael Averstegge Java 0 01-10-2006 11:05 PM
Return multiple values from web service Shawn Cutter ASP .Net Web Services 3 06-10-2005 05:32 PM



Advertisments