Hi,
I have used the HttpJob library to send a SOAP message when I send the request I get a XML reply in the JobDone Sub.
I have made it log the reply using the following code:
The file it logs is as follows:
Now I am trying to work out how to parse the XML reply so I can read the string values in the XML file.
I am trying to log:
12345678,abc,dfg
1234,test,testing
abc123,demo,testing
Any idea how I can parse the XML to get these values ?
I have used the HttpJob library to send a SOAP message when I send the request I get a XML reply in the JobDone Sub.
I have made it log the reply using the following code:
B4X:
Public Sub JobDone (Job As HttpJob)
If Job.Success = True Then
Job.GetString
End If
End Sub
The file it logs is as follows:
HTML:
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Header><ResponseHeader xmlns="https://URL_HERE"><Text>3 account(s) found.</Text></ResponseHeader></soap:Header><soap:Body><ListAccountsResponse xmlns="https://URL_HERE"><ListAccountsResult><string>12345678,abc,dfg</string><string>1234,test,testing</string><string>abc123,demo,testing</string></ListAccountsResult></ListAccountsResponse></soap:Body></soap:Envelope>
Now I am trying to work out how to parse the XML reply so I can read the string values in the XML file.
I am trying to log:
12345678,abc,dfg
1234,test,testing
abc123,demo,testing
Any idea how I can parse the XML to get these values ?