Discussions tagged REST

Hi Powerbuilder friends, I have this code where I need to send data to our payment partner. It successfully requests a token, but no data is transferred, and there's an authorization error with the JWT token request. String ls_jwttoken, ls_PostData...
We are switching from SOAP to REST and I am asking myself which implementation/class is the best: HttpClient or RestClient? Which one should i choose and why? I started with RestClient but run into difficulties loading a file (octet-stream) into Pow...
Hi! We're deploying PB 2022 Build 1892. I came across a situation yesterday that confuses me. Here's the code: lrc_rest = create RESTClient lrc_rest.SecureProtocol = SECURE_PROTOCOL_TLS1_2 lrc_rest.Timeout = 10 ls_get = 'XMLData=rootDataActio...
Hi   I want to consume a REST service sending the JSON format and get a response from the service.   I get the TOKEN using GetJWTToken, which works fine and it is valid, but when I consume the REST service it's require, it returns an error that t...
Hi all.   I need to request for a token from a webservice, but it's using a certificate (file in a folder and password for validation). I know it's already implemented in PowerBuilder 2022 as I've been able to test, but in production environment I...
Hello, I'm using PB2021 Build 1509, and we utilize ASP .Net Core 3.1 REST api's for all data access.  Those were built with SnapDevelop and .Net Datastores. It has been working relatively well until more recently when several users started trying to...
How to replicate this request curl --location 'http://localhost:34020/api/processor' \ --header 'IE-INTERFACE_VERSION: 1.11' \ --header 'IE-SERVER_TYPE: BGExtractor' \ --header 'IE-JOB_ID: 42' \ --header 'IE-RESULT_TYPE: PNG' \ --header 'IE-PRO...
Hello, PB 2021 - 1509 Is it possible to send files with REST client or do I have to use Http client? If I want to use RESTclient should I convert blob to string and then send this string with SendPostRequest function? Thank you for your answers an...
  HI APPEON Support,   Good day... I need your help badly... I am new in API and REST... need guidance. Our company is implementing SMS Blast..   Authentication is give by the provider company.   Basic Authentication in the HTTP head...
Good day,   I need help from you guys... I am new with API infrastructure... Our company subscribe to a sms blast from a certain company... then, they just gave us a link RESTFUL API for the sending and receiving  of SMS... I don't have any idea ab...
I'm having some problems connecting to an old Radius server that is stuck on TLS1.0 I'm getting error -19 in HTTPClient mode and -33 in RESTClient = "TLS 1.3 error. The server does not support TLS 1.3." I've set both SecureProtocol and IgnoreServer...
Does anyone have either any successful examples of using HTTPClient to consume a .Net Web API that requires XML to be passed to it? OR know why I’m receiving the error\issues below when trying to pass the XML? I’m using PowerBuilder 2021 Profe...
Hi, is there any way to handle JSON with more than 20 MB?  We want to create a Webservice in SnapDevelop, that sends or retrieves E-Mails. Our application sends the data to the Webservice and the Webservice sends the E-Mail or the retrieves them. T...
I hope someone can help I need to store the return from my GET statement into a database table This is the format of the return, what method would you recommend. I am currently using 2019 but can easily move to 2021 if the new features help. regar...
We plan to migrate a PowerBuilder classic application to PowerServer 2021. Once migrated, can PowerServer 2021 REST API's be called from a non-PowerBuilder application? ...
Hi. We're currently developing a service for fetching realtime currency from a online broker. The result is a JSON, like this: [ { "symbol": "USD/NOK", "timestamp": "2022-03-22T06:58:35.690285Z", "rate": 1.566015 }, { "symbol": "SEK/NOK", "timesta...
Hi.   Is there a way for pretty print XML? We receive on long string of XML data, but want to pretty print this in a MLE og RTF edit for better viewing. An online REST solution could work, but I cannot seem to find any.   br,   Bjarne Anker ...
Hi.   I've created a datawindow and using RestClient.retrieve(dw,URL) to fetch data from our API. Works great. However, there is a small issue regarding datetime and strings. This is the string in the JSON responsebody containing the datetime: "m...
I'm running PB 2019 R3 Build 2703.  I'm using RESTClient object to call SendGetRequest().  If the URL I'm passing exceeds 1325 characters in length, then  SendGetRequest() returns -2.  This equates to Invalid URL.  I've tested the URL outside of PB w...
Per the SnapDevelop documentation, the RetrieveAsync method takes a cancellationtoken parameter to make an operation cancelable (see link below) and throws an exception in the TRY/CATCH block if that if that happens. How is that done in practice thou...

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