Discussions tagged REST

I'm relatively new to using the RestClient and SnapDevelop, but things were going fine in converting our app's DB access to asp.net core web api's until I encountered an issue with the RestClient.Submit method...in particular Syntax 1,  objectname...
Hi I hope you can help. I am trying to connect to an API and have been given the following information. I do not have much experience in this area and any help would be appreciated. Authentication Purpose - Authorization fro subsequent callsmetho...
We are using Powerbuilder 2019 build 2082 and the deployed applications are running on windows server 2012. The restclient object sendGetRequest() is returning a -1. This works great on windows 10 from the IDE and it also works when deployed to a wi...
Hi, I'm trying to set a timeout on the RESTClient.At the moment if the API is unavailable the application waits for 20 seconds (this is a default action(?), I haven't changed anything). I want this time to be reduced to 3 seconds.When I set client ...
I am consuming a REST API from PowerBuilder 2019 R2. For this I use the HttpClient class. When running the API from Posman, Insomnia and SoapUI the response is immediate (thousandths of a second)   However, when I run it from PowerBuilder, at be...
We are trying to use the new RESTClient object to call some internally developed REST services (Appeon Powerbuilder 2019 R2 Build 2328) This REST service requires several parameters that acts as filters for the actual data retrieval.  Because of thi...
Hi! I'm attempting to connect to an internal .net Web Service using a certificate file.  I see that the old SoapConnection object had the SetClientCertificateFile method, but can't find the same (or similar) method in the RESTClient or HTTPClient.  ...
I'm using Powerbuilder 2019 R2 Beta and SnapDevelop. I migrated a simple application to PB2019R2 and then built a Web API in SnapDevelop following the instructions in  https://docs.appeon.com/appeon_online_help/dwconverter2019r2/CRUD_Operations_wit...
How to implement sorting, filtering and paging to my asp.net mvc controller with snapdevelop, in order to use this kind of RESTFUL syntaxe url: http://www.example.gov/api/v1/magazines.json?year=2011&sort=desc There is plenty of tutorial on how ...
Hi there, In my MVC .Net Web API i have this auto-generated GET function in my controller which works fine and return the list of all the elements in my table (SimpleJson.png). [HttpGet][ProducesResponseType(typeof(IEnumerable<Ds_Invit_Sydrtcml&...
In my PowerBuilder Client, I want to use the JsonPackage object to send the result sets of two datastores to our Web API that was created with SnapDevelop.  Here is my PB code: //set values of JSONPackage with API datastores ljpk_submit.setvalue( "...
I'm trying to generate and sign a JWT using a RSA private key generated from an external source in PB2017 R3. When I call AsymmetricSign, I get an "Invalid 'privKey' in AsymmetricSign" error. I've read the article here, but it leaves out the part th...
Hi Everyone, I've got a question about how people are creating complex JSON for real world applications.  I'm updating an application to use a third party's REST API and some of the API calls require reasonably complex JSON to be sent. The JSON may ...
PB 2017 R3 I'm consuming a third party REST service using httpclient and when parsing the returned JSON-string I do it with JsonParser. The number values in the returned JSON string are always supplied with a dot (".") for decimal point. It seems l...
I'm using the datastore model of SnapDevelop in a web api to populate an external datawindow in the client using the ShareData() method.  How would I -- with one restclient call -- populate this multi-row grid datawindow AND also import a single row ...
Problem: The web app we've deployed to localhost on our virtual server cannot make a Rest call. It returned with status code -1 but returns no status code text. Question: Has anyone encountered a RestClient status code of -1 with no status code text...
Can you use C# to write scripts for a window instead of powerscript? If not, can you direct me to any documentation on how to make a call to a REST service from a data window? I'm confident I can create a WebApi with SnapDevelop, but I don't yet kn...
Hello, I am looking to set a TimeOut for my REST calls from PB12.5.2. Below is my code:   loo_xmlhttp = CREATE oleobject loo_xmlhttp.ConnectToNewObject("Msxml2.ServerXMLHTTP.6.0") loo_xmlhttp.setTimeouts(100,100,100,100) // invoke POST method fo...
Hi all, We are evaluating the efforts to migrate PB NVOs from an EAS web app to REST API using Snap Develop and PB 2019. We already migrated few methods using the IDataStore object. However we noticed that several methods were missing from the orig...
I'm calling a REST web service with PB2017 R3 using the OAuthClient to upload a file.  The service is very poorly documented, and only shows an HTTP example.  I've been able to use the example and get a file uploaded, but we cannot open or preview th...
  • Page :
  • 1