CipherIS
asked on
WCF Get Data from database as List<>
Can anyone provide me a simple example of how to get data using WCF from a database preferably returning a List<>. I have a SPROC set up in the database which will return the data.
Thanks
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks this template helped me create my own.
ASKER
template was able to help me create a WCF per my requrements
You can simply specify the return type of your WCF method as List<XXX> (I'm guessing XXX will be string for your purposes). The runtime will take care of serializing that object into XML for you.