Pedro Caldeira Active Member Licensed User Longtime User Nov 25, 2016 #1 I have to send a XMLRPC/JSON to a Webservice running on a given machine I have to send a structure similar do this one: B4X: <methodCall> <methodName>RequestServer.RequestBill</methodName> <params> <param> <value><i4>30</i4></value> </param> <param> <value><i4>1</i4></value> </param> </params> </methodCall> What method would be best to do this : hhtp lib, json lib ? I am a bit of a noob with web programming, so help is appreciated
I have to send a XMLRPC/JSON to a Webservice running on a given machine I have to send a structure similar do this one: B4X: <methodCall> <methodName>RequestServer.RequestBill</methodName> <params> <param> <value><i4>30</i4></value> </param> <param> <value><i4>1</i4></value> </param> </params> </methodCall> What method would be best to do this : hhtp lib, json lib ? I am a bit of a noob with web programming, so help is appreciated
KMatle Expert Licensed User Longtime User Nov 26, 2016 #2 Search for JSON and give it a try. It's all about adding data to maps. It's a JSON tree: https://www.b4x.com/android/forum/threads/server-online-json-tree-example.39048/#content Upvote 0
Search for JSON and give it a try. It's all about adding data to maps. It's a JSON tree: https://www.b4x.com/android/forum/threads/server-online-json-tree-example.39048/#content
Erel B4X founder Staff member Licensed User Longtime User Nov 27, 2016 #3 You should use OkHttpUtils2 to send the message. Upvote 0