Discussions tagged REST

Hi,I am trying to call a rest service that has a self signed certificate, I am using the RestClient class. Do you know how to configure this to work? Currently I get return code "-3 -- Cannot connect to the Internet" from the call. I am using PowerBu...
Hi my fellow PB friends,   Can I create a REST end point (PB application) so that other applications and services can call business logic written in PB ?   Thanks  Steen    ...
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=2011sort=desc There is plenty of tutorial on how to do...
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(IEnumerableDs_Invit_Sydrtcml), St...
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...

Find Questions by Tag

.EXE .NET 6.0 .NET Assembly .NET Core 3.1 .NET Core Framework .NET DataStore .NET Std Framework 32-bit 64-bit ADO.NET AEM AI Algorithm Amazon AWS Android Apache API APK App Store App Store (Apple) Appeon Workspace Appeon Xcelerator Plug-in Architecture Array ASE Asynchronous Methods Authentication AutoBuild AutoCompiler Automated Testing Automation AutoScript Azure Barcode Base64 Batch BigData BLOB Branch & Merge Browser Bug Build Button C# C# Class Importer C# Editor C# Model generator Calendar Camera Certificate Chrome Citrix Class Client Client/Server Cloud Cluster Collection COM Command Line Compiler Compression Computed Field Configuration Controls Cookies Cordova Crash Cross-Platform Crosstab CSharpAssembly CSharpObject CSS CSV Cursor Data Database Database Driver Database Painter Database Profile Database Provider DataObject DataSource DataStore DataStore (C#) DataStore (PS) DataType DataWindow DATE DATETIME DB2 Debug Debugger Debugging Deployment Design DLL DO-WHILE Dockable Docker Documentation DOUBLE Download DragDrop Edge Edit Style Editor Elevate Conference Email Embedded SQL Emulator Encoding Encryption Enhancement Request Entity Entity Framework ERP Error Event Event Handler Event Handling Excel Exception Export Expression External Functions F# Field File File Access Filter Firefox Firewall Font FOR-NEXT Foreground Format Function Garbage Collection GeoLocation Git Graph HANA Hash Header HTML/5 HTTP/S HTTPClient Icon IDE Identity IIS IMAPI Import InfoMaker Inheritance Installation Integer IntelliSense Interface Internet Internet Explorer iOS IPA iPad iPhone IWA J# Java JavaScript JBoss JDBC JOIN JSON JSONGenerator JSONParser Kestrel Label Lambda Large File LDAP Library License LINQ Linux OS Load Balancing Localization Localized PBVM Log In Log Out Logging LONG LONGLONG macOS MAPI Maps MDI Memory Memory Leak Menu Merge MessageBox Messagging Method Migration MIME TYPE Mobile Model ModelStore ModelStore (C#) MSOLEDBSQL Multi Threading MVC MySQL n-Tier Namespace NativePDF NVO OAuth ODATA ODBC Office Offline OLE OLEDB Online Open Source OpenAPI OpenSSL Oracle OrcaScript Other Outlook Output Package Parameter Patch PayPal PB Classic PB Native PB.NET PBC PBD PBDOM PBG PBJVM PBL PBNI PBORCA PBVM PBX PDF Performance Permission PFC Picture Pipeline Play Store (Google) Plugin Popup Port POST PostgreSQL PowerBuilder PowerBuilder (Appeon) PowerBuilder (SAP) PowerBuilder Compiler PowerBuilder Runtime PowerClient PowerScript (PS) PowerScript IDE PowerScript Migrator PowerServer PowerServer Mobile PowerServer Toolkit PowerServer Web PowerServerLabel Print Properties Proxy Publish PULL PUSH Query Regression Release Renew Resize Response REST Retrieve RibbonBar RibbonBar Builder Rich Text Roadmap RPC Runtime Packager SaaS Scaffolding Script SDI SDK Security Server Service Session Single Sign-on Size SMTP SMTPClient SnapDevelop SOAP Sort Source Code Speech Recognition SQL SQL Anywhere SQL Server SqlBuilder SqlExecutor SQLite SqlModelMapper Storage Stored Procedure Subscription SVN Swagger Syntax TabbedBar TabbedView Tablet TabPage Target TE Control Testing Text TFS Theme TIME Timer TLS/SSL Tomcat TortoiseGit TortoiseSVN Transaction Transparency Trial Trigger TRY-CATCH TX Control Type UI ULONG UltraLite Uninstall Unit Test Unit Testing UNIX OS Update Upgrade Upload URL User Center User Object UWP Validation VARCHAR Variable Versioning Visual Studio Visual Studio Code VM Voice Warning WCF Web API Web Extensions Web Service WebBrowser WebForms WebLogic WebSphere WildFly WinAPI Window Windows OS WinForms Wizard Workgroup Workspace WPF XCODE XHTML XML Zoom