Discussions tagged REST

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...

ISO-8859-1 charset

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 ?!...
In Beta is possible to publish rest service ?! I see PB 12.5 can publish rest , but not find in PB 2017 R3 b.1880 to publish rest !...
Hi PB Experts I have run into an issue that, for the life of me, I cannot solve. I need to access PDF files on a share drive on a remote server using URL. If I copy and paste the file's URL, I get a LogIn/Password page which asks for security. Aft...
Hi, Is there any examples of using RESTFul APIs with Appeon Mobile. I had assumed that the samples provided for the desktop would work but they don't for me. e.g. the below works fine for me as a desktop app using PB 2017 R3 but fails silently whe...
I am in the process of converting an existing PowerBuilder application that communicates with a mainframe via an emulator to one using APIs with REST/JSON. I have looked at the examples in the Appeon PowerBuilder 2017 R3 Help and was wondering if the...
Hi How to call (Powerbuilder 2017 r3) a REST web service that uses a client certificate (x509) to authenticate the calling application ? Best regards Thierry...
I'm trying to imbed a binary zip file as an attachment in a post to a RESTful service using the httpclient in Appeon 2017 R3. I read the file into a blob and then have to convert it into a string for the body, so it looks like:------WebKitFormBoundar...
  • Page :
  • 1