Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


DataSet Question

Posted on 2009-02-16
Medium Priority
Last Modified: 2013-11-05
I would like to return a dataset with a couple data-tables out of a webservice and then use it in a client application. How would I return the structure out of the webservice and then consume it in the client windows app?
Question by:thenrich
LVL 75

Accepted Solution

käµfm³d   👽 earned 2000 total points
ID: 23652273
You would need to create a function on the web service that returned a DataTable/DataSet. Your client application would have a reference to your web service and thus it would know that the function is returning a DataTable/DataSet and you would capture it as a return value from the function and use it as you would any other code. My syntax might be off a little as I started wrting this in C# ;)
// Your webservice
<OperationContract()> _
Function GetData(string parameter) As System.Data.DataTable
// Your client
Dim webVar As new WebServiceName
Dim dt As System.Data.DataTable
dt = webVar.GetData("some parameter value")

Open in new window


Author Closing Comment

ID: 31547411
I was missing setting my funaction on the web service as a dataset

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

581 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question