Discussions tagged Web API

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...
Hello, I just want to know if there is any special reason for GetJWTToken function if it's doing (almost) exactly the same as SendPostRequest. I see that GetJWTToken has extra return status:  "-5 -- Failed to get token" (and has SendPostRequest "-1...
Hi, we are using the addToLibraryList() function to dynamically extend the library list of our application, to dynamically use other/new powerbuilder objects like datawindows etc. This seems to be not fully supported anymore when deploying a powerse...
Hello!I have a probably small problem . I would like to get the url of the WebAPI of my PowerServer application. Reason is that I would like to access the PowerServer Management APIs of my application in my application. Unfortunately I can't find a...
I've deployed a PB application to PowerServer 2021.  The application uses SQL Server for the backend database and is hosted on a remote AWS web server running IIS.  The deployment process went fine and I can launch the app w/o issue using the CAL.   ...
I am getting a datawindow error when retrieving a datawindow that is part of a tab page on a window.  See attached image to view the error.  The database is SQL Server and the application has been been deployed to PowerServer 2021.  The datawindow ha...
Hello everyone!   I am using PB 2021 and ASA 17   I need to do validation of  VAT number from Vies database in my PB application before I can create sales invoice to customers, which all around EU.  Do any of you have solution for this?  Do you...
Dear .NET DataStore users, we have a Web API based on the .NET Datastore that - especially in one case - uses heavily structured objects derived from DataObjects with nested objects which then get added as Properties in the Model annotated as DwRepo...
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...
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    ...
Hi all, hope this wasn't asked before: Creating the web api sample project from snap development 2021 I get a service listening on localhost:5000. Connecting with a test program consuming on this address works fine. When I change the IP address in ...
In offline mode of the PB R2 License, I am not able to see Appeon web demo. (5 lessons are there to covert desktop application to web application) . Basically, need to know the lessons or guidance for converting desktop to web based application. Req...
My API has a method with an optional parameter, that is passed as path: api/v1/ISV/Credits/[Channel] It is marked as [HttpGet("{customer?}")] and is declared as: public string Credits(string channel="") in the WebAPI Tester, it is listed ...
Are there any samples or guidance for securing a ASP.NET Core 3.1 Web API as templated by SnapDevelop?   For example, I am working from the following fine sample: ASP.NET Core 3.1 - Simple API for Authentication, Registration and User Management | ...
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 ...
We were using DataObjectFactory.LoadDataWindow(null) in the startup class of our xUnit project for our API.  I've discovered that our unit tests referencing datawindows are no longer working with an error message stating that the metadata for the dat...
In order to create a .NET API  I am trying to connect to Sybase ASE databases on our servers. They can connect in PowerPoint 2019 R2 but not in SnapDevelop. Is there any way to make the Connection via a Connection string etc. I am trying to Add a Dat...
We have migrated our web api to SnapDevelop 2.0.  It runs on a Windows 10 machine using an Oracle 11g database.  The api method below worked fine in SnapDevelop 1.0 but now after the migration we are getting the attached exception. During the migrati...
Is Powerbuilder HttpClient supported in a SnapDevelop 2019 R2? WebAPI project?  I am am migrating PowerScript to a C# WebAPI project.  When I declare 'HttpClient Http;' in my GlobalFunc, I receive this compiler message: The type or namespace name 'H...
I am in the process of migrating a web api from SnapDevelop R1 to R2.  We have about 50 datawindows that were exported to the api using the C# Model Generator.  The exported srd's and classes for these were in a 'DataWindows' folder along with the co...
  • Page :
  • 1