How do I read the response from a webservice

Nickle

Member
Licensed User
Longtime User
I am so new here. Tried my hands on Getting JSON data from server but can't read and parse the values to relevant fields. The idea is to have a server end to store my data and view into receptive fields on an android screen from a webservice call

Sample of Out put
===================
<customer uri="http://localhost:8080/web/resources/customers/863/">
<addressline1>456 444th Street</addressline1>
<addressline2>Suite 45</addressline2>
<city>Redwood City</city>
<creditLimit>25000</creditLimit>
<customerId>863</customerId>
<fax>650-555-0180</fax>
<name>Big Network Systems</name>
<phone>650-555-0181</phone>
<state>CA</state>
<zip>94401</zip>
</customer>
========================

I am trying to build my app from this sample below
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
hc.Initialize("hc")
End If
Dim req As HttpRequest
req.InitializeGet("http://localhost:8080/web/resources/customers/" & custID & "/")
hc.Execute(req, 2)
End Sub

Sub hc_ResponseSuccess (Response As HttpResponse, TaskId As Int)
Dim resultString As String
Dim TestView As String
resultString = Response.GetString("UTF8")
ToastMessageShow(resultString, False)
End Sub

At least am able to show the data on the screen with the ToastMessage but now am stuck with how to read it. I need help.
 
Top