how return list values from web service

S

scottrm

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

Erymuzuan Mustapa

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/Resources/Software/WSContractFirst/default.html


Regards
Erymuzuan Mustapa
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top