Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing DataSet across Web Service
Message
From
11/10/2003 18:27:11
 
 
To
11/10/2003 17:15:42
General information
Forum:
ASP.NET
Category:
Web Services
Miscellaneous
Thread ID:
00837848
Message ID:
00837859
Views:
24
Hmmm ... and you're binding the DataSet to the DataGrid the same way (after you call the WebService to get the data)? If so, I'm not sure what the problem might be now ... check out things like maybe the Table name. You're sure the DataSet is being returned correctly and that there's data in the DataSet?

~~Bonnie


>>I don't think the problem is with returning the DataSet, I think it's in your WebService itself ... you never instantiated the loData object:
>>
>><WebMethod()> _
>>Public Function GetForumDataSet() As DataSet
>>
>>   ' Get the XML string as before
>>   lcHtml=...
>>
>>   ' However, in this method, we will now convert it into a DataSet
>>   Dim loData As DataSet
>>
>>   ' I Added this line:
>>   loData = new DataSet
>>
>>   loData=ImportXML(loData, lcHtml)
>>   Return loData
>>End Function
>>
>
>You're right. I forgot to include that line. Now, the application runs without an error. However, the data doesn't appear in the grid.
>
>With the same code, if I call the GetForum() instead, which is returning XML string, the data appears in the grid. But, when we call the GetForumDataSet() from the Web Service and that it returns the DataSet, no data appears.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform