Discussions tagged REST
Problem passing XML to Web API using HttpClient
- Resolved
- Advice
- Last updated 2 months ago
- Daryl Foster replied 2 months ago
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...
Any way to handle JSON with more than 20 MB?
- How-to
- Last updated 2 months ago
- Ken Guo @Appeon replied 2 months ago
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...
Convert JSON to usable data
- How-to
- Last updated 3 months ago
- Chris Pollach @Appeon replied 3 months ago
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...
Can PowerServer 2021 REST API's be called directly from a non-PowerBuilder application?
- Resolved
- Advice
- Last updated 3 months ago
- Amit Gawane replied 3 months ago
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...
XML beautify/pretty print
- Resolved
- How-to
- Last updated 6 months ago
- Brad Mettee replied 6 months ago
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
...
RestClient string to datetime
- Resolved
- How-to
- Last updated 6 months ago
- Kevin Ridley replied 6 months ago
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...
CancellationToken in SnapDevelop
- How-to
- Last updated 9 months ago
- Francisco Martinez @Appeon replied 9 months ago
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...
PB 2019 R3 client calling REST service with self signed certificate
- How-to
- Last updated 9 months ago
- Kevin Ridley replied 9 months ago
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...
Expose a PB app as a REST end point for others to call.
- Resolved
- Advice
- Last updated 10 months ago
- Armeen Mazda @Appeon replied 10 months ago
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
...
RestClient Submit method - does syntax 1 send all the dw buffers?
- Resolved
- Advice
- Last updated 1 year ago
- Chris Pollach @Appeon replied 1 year ago
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...
RestClient and Windows Server 2012
- Issue
- Last updated 1 year ago
- Kai Zhao @Appeon replied 1 year 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 2 years ago
- Gregory Rusak replied 2 years 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 2 years ago
- Jim Nesbitt replied 2 years 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 2 years ago
- Michael Kramer replied 2 years 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 ...
- Page :
- 1