Brett,
Assuming that you have your server-side works are over. And depending on the language you used in server-side [ C# through Snapdevelop or other scripting languages like PHP or others ], you may need to learn about RESTClient or HTTPClient.
Here is a sample code to access a webservice using HTTPClient. We have used PHP with Slim Framework on server side and use JSON to transfer data.
lo_client = Create HTTPClient
lo_client.SetRequestHeader("Accept", "*/*")
lo_client.SetRequestHeader('Content-Type','application/json')
String ls_json
ls_json = '%Substitute Some JSON values%'
ls_api = 'http://localhost/stock/country/insert'
li_ret = lo_client.SendRequest('Post', ls_api, ls_json)
If li_ret = 1 Then
li_statuscode = lo_client.GetResponseStatusCode()
If li_statuscode = 200 or li_statuscode = 201 Then
lo_client.GetResponseBody(ls_body)
If IsNull(ls_body) = False and Trim(ls_body) <> '' Then
ls_return_json = ls_body
Else
ls_return_json = ''
End If
Else
lo_client.GetResponseBody(ls_error)
Messagebox('Error', ls_error)
End If
Else
lo_client.GetResponseBody(ls_error)
Messagebox('Connection Error', 'Could not connect to WebServer. ' + &
'Check your internet connection. ' + &
'Check Whether Webserver is running.~r~n' + ls_error
End If
One Simple code snippet.
HTH
Happiness Always
BKR Sivaprakash