Discussions tagged REST
RestClient and Windows Server 2012
- New
- Issue
- Last updated 3 days ago
- Chris Pollach @Appeon replied 2 days ago
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...
Calling a Web Service in PB Classic (2017 R2) using an SSL certificate
- How-to
- Last updated 11 months ago
- Gregory Rusak replied 8 months ago
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. ...
Datastore RESTClient Object Submit Function Response is slow (then fast!)
- Issue
- Last updated 1 year ago
- Jim Nesbitt replied 1 year ago
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...
Sorting, filtering, and paging - ASP.NET MVC with SnapObjects
- How-to
- Last updated 1 year ago
- Michael Kramer replied 1 year ago
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 ...
Enhance JSON response from asp.net web service
- Resolved
- How-to
- Last updated 1 year ago
- Olivier PAVLIN replied 1 year ago
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&...
Process JsonPackage in SnapDevelop Controller
- Resolved
- How-to
- Last updated 1 year ago
- Thomas Rolseth replied 1 year ago
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( "...
AsymmetricSign with external RSA key PB17
- Resolved
- Issue
- Last updated 1 year ago
- James Moore replied 4 months ago
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 ...
Parsing JSON numbers and decimal point character
- Resolved
- Advice
- Last updated 1 year ago
- Sverre Tvedt replied 1 year ago
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...
SnapDevelop Datastore: populating two datawindows with one call
- How-to
- Last updated 1 year ago
- Logan Liu @Appeon replied 1 year ago
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 ...
RestClient Returns StatusCode -1. It works in the PB IDE but not when deployed to localhost.
- Resolved
- Issue
- Last updated 1 year ago
- Zhao Kai @Appeon replied 1 year ago
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...
Migrate NVOs from EAS web app to REST Web API with PB 2019/Snap Develop
- Advice
- Last updated 1 year ago
- Ricardo Jasso replied 1 year ago
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...
HTTPS for PostURL function of iNET Object in PB12.5.2
- Resolved
- Issue
- Last updated 1 year ago
- Praveen Rajarao replied 1 year ago
Hello
I'm trying to use the inet/internetresult objects and the PostURL function. Everything works fine if I use GetURL, or if I try to use PostURL.
However if I use PostURL with a "HTTPS" it fails with a -5 (Unsupported secure (HTTPS) connection a...
RESTClient on Mobile App in 2019
- Resolved
- Misc
- Last updated 1 year ago
- Chris Pollach @Appeon replied 1 year ago
Hi,
About a year ago I asked about possibility of using RESTful web services in Mobile Apps/PowerServer.
At that time Chris said that:"The new RESTful web services in PB2017R2 are not supported in PowerServer Web/Mobile.Support for RESTful web serv...
- Page :
- 1