我想通过vb.net从Web Service soap中检索数据
现在我可以通过xml检索数据,但我想检索一些列到data datagrid视图。
Private Sub EASummaryCompletedHandler(ByVal sender As Object, ByVal e As
MyService2.EASummaryCompletedEventArgs)
MsgBox("Temperature: " & e.Result)
If e.Result.ToString().Equals("0") Then
Else
Dim datalist As List(Of String) = New List(Of String)()
For Each item In e.Result().ToString
datalist.Add(here i want retrieve data some column)
Next
End If
End Sub
Sub CallGetTempAsync(ByVal Code1 As Integer, ByVal Code2 As Integer, ByVal
Code3 As String)
If Not handlerAttached Then
AddHandler My.WebServices.UmrahDataService.EASummaryCompleted, AddressOf Me.EASummaryCompletedHandler
handlerAttached = True
End If
My.WebServices.UmrahDataService.EASummaryAsync(Code1, Code2, Code3)
End Sub
Private Sub WebServUmr_Load(sender As Object, e As EventArgs) Handles
MyBase.Load
CallGetTempAsync("", "", "")
End Sub