Hello
I need to read the response of a webservices that provides data in a datatable The webservices is called correctly but
I do not know how to read the data contained in the datatable.
Sub JobDone (Job As String)
Log("JobName = " & Job.JobName & ", Success = " & Job.Success)
If Job.Success = True Then
dim response as string
response = job.getstring '<--- webservice response
End Sub
Thanks for the reply
I looked at the Xml2Map class. with the code shown below :
B4X:
Dim xm As Xml2Map
xm.Initialize
Dim root As Map=xm.Parse(job.GetString())
Dim Envelope As Map=root.Get("Envelope")
Dim Body As Map=Envelope.Get("Body")
Dim LoginResponse As Map=Body.Get("LoginResponse")
Dim LoginResult As Map=LoginResponse.Get("LoginResult")
Dim diffgram As Map =LoginResult.Get("diffgram")
Dim NewDataSet As Map =diffgram.Get("NewDataSet")
Dim Table As Map =NewDataSet.Get("Table")