Android Question Web Service Tutorial

Erel

B4X founder
Staff member
Licensed User
Longtime User
If you want to connect to a remote database server then you should use Remote Database Connector.

Http requests are handled with: HttpUtils2 - Web services are now even simpler

It is easier to work with non-SOAP requests:
B4X:
Sub Activity_Create(FirstTime As Boolean)
   Dim job As HttpJob
   job.Initialize("j1", Me)
   job.PostString("http://www.w3schools.com/webservices/tempconvert.asmx/CelsiusToFahrenheit", _
     "Celsius=30")
End Sub

Sub JobDone(job As HttpJob)
   If job.Success Then
     Log(job.GetString)
   End If
   job.Release
End Sub
You will need to parse the XML result.
 
Upvote 0

Cüneyt Gargin

Member
Licensed User
Longtime User
ok. thanks. although writing a parser might be tiresome. for a scalar value, it is ok but what if a webmethod returns a dataset ?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
It´s no problem if the dataset is returned as JSON or XML
 
Upvote 0
Top