Discussions tagged REST

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...
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...
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...
Hi.   Is it possible to generate a proxy object for a REST API service? I think this was an option in PB12.5 (File-New-Project-Rest client proxy), but I'm not 100% sure. This option is not available in Appeon PB 2017 R3, but perhaps it's possible...
In my project have too many custom NVO with not DS or DW. How to use this NVO in C# code or how to publish RestFull Service with this NVO ?!...
  • Page :
  • 1