In PowerBuilder 2019, the way to connect a Rest-Api is with this:
Application Window--
client= CREATE RESTClient
client.SetRequestHeader("Content-Type","application/json")
client.SetRequestHeader("Accept-Encoding","gzip")
Function Window--
String ls_C019_ResPonse
RestClient lrc_C019
lrc_C019 = Create RestClient
//Connect to RestApi
lrc_C019.SendGetRequest('http://localhost:8080/api/'+api_data, ls_C019_ResPonse)
//Returned Info:
Messagebox("",ls_C019_ResPonse)
Is there a way to connect my Rest-Api, or something like this, using PB 2017 R3?
--PB 2017 mark error in: lrc_C019.SendGetRequest( , )
Thanks.