Tatworth, thank you for taking the trouble to post a response to my question, but (as I pointed out in my first post) I can already return scalar values from a web service. My first web service returned "Hello World", the second a few items from the database (given userid and password, return email and subscription-paid-to), now I am trying to write a search that will return zero or more table rows.
I had coded a tableadapter like this: -
<System.Web.Services.WebService(Namespace:="http://www.nzgdb.co.nz/")> _
<System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<ToolboxItem(False)> _
Public Class GDBService
Inherits System.Web.Services.WebService
[snip]
Dim taGDBSearch As New GDBChartDataTableAdapters.GDBSearchTableAdapter
Dim tbGDBSearch As GDBChartData.GDBSearchDataTable
Dim trGDBSearch As GDBChartData.GDBSearchRow
<WebMethod()> _
Public Function GDBSearch(ByVal Family As String, ByVal Given As String, ByVal YofBirth1 As Integer, _
ByVal YofBirth2 As Integer, ByVal YofDeath1 As Integer, ByVal YofDeath2 As Integer, _
ByVal Owner As String) As GDBChartData.GDBSearchDataTable
tbGDBSearch = taGDBSearch.GetData(Family, Given, YofBirth1, YofBirth2, YofDeath1, YofDeath2, Owner)
Return tbGDBSearch
End Function
End Class
While the correct results are returned to tbGDBSearch within the service (as shown by debugging), I couldn't figure out how to get the results back to the program. I am currently working through the notes from Suprotim's posts. I think that his second post looks quite promising, but I've now been diverted on to an unrelated problem and it may be a few more days before I can get back to this issue.