Android Question How to do a POST call webservice method

mrjaw

Active Member
Licensed User
Longtime User
Hi!
I am trying to do a call a webservice using POST method , I use this

B4X:
Dim JobBuscar As HttpJob
      JobBuscar.Initialize("JobBuscar", Me)
      '       
      ID=901
      Token = "2938374367263"
      param= "getfacturas/" & Token & "/" & ID
      '
      Main.url2 = Main.Urlserver & param
      'http://ip:8080/appws/ws/getfacturas/2938374367263/901
      Log(Main.url2)
      ' 
      Dim Result as String
      ToastMessageShow("Buscando facturas",True)
      JobBuscar.PostString(Main.url2,Result)

This is the correct way to use a POST method with this http://ip:8080/appws/ws/getfacturas/2938374367263/901

What is the use for second parameter ?
 

mrjaw

Active Member
Licensed User
Longtime User
Erel, now it works so fine.! But I dont know yet what for is the second parameter. I read that is the payload but really I dont know yet
 
Upvote 0
Top