So, please, who can help me?
I installed PxWebApi 2.0-beta on Windows by downloading it from GitHub and extracting it to C:\inetpub\wwwroot\PxWebApi. I made sure .NET 8.0 Runtime and ASP.NET Core were installed. When I opened http://localhost/PxWebApi/ in the browser, the Swagger page appeared, which means the API is running. However, when I tried to access the tables via PowerShell using Invoke-WebRequest -Uri 'http://localhost/PxWebApi/api/v2/tables' -Headers @{ 'API_ADMIN_KEY' = 'test' }, I got a 404 Not Found error. I then created the folder App_Data inside PxWebApi and placed all my PX files in C:\inetpub\wwwroot\PxWebApi\App_Data\Tables, making sure the folder inherited permissions from the parent and the application pool had read and modify rights. After restarting IIS, I still encounter 404 errors. I would like to know if there are additional steps required to ensure PxWebApi reads the PX files correctly and exposes the tables through the API.![]()
So, please, who can help me?
--
You received this message because you are subscribed to the Google Groups "pcaxis" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pcaxis+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pcaxis/00ca1578-8a80-4cc2-9e6e-e7b362b9f96fn%40googlegroups.com.
I installed PxWebApi 2.0-beta on Windows by downloading it from GitHub and extracting it to C:\inetpub\wwwroot\PxWebApi. I made sure .NET 8.0 Runtime and ASP.NET Core were installed. When I opened http://localhost/PxWebApi/ in the browser, the Swagger page appeared, which means the API is running. However, when I tried to access the tables via PowerShell using Invoke-WebRequest -Uri 'http://localhost/PxWebApi/api/v2/tables' -Headers @{ 'API_ADMIN_KEY' = 'test' }, I got a 404 Not Found error. I then created the folder App_Data inside PxWebApi and placed all my PX files in C:\inetpub\wwwroot\PxWebApi\App_Data\Tables, making sure the folder inherited permissions from the parent and the application pool had read and modify rights. After restarting IIS, I still encounter 404 errors. I would like to know if there are additional steps required to ensure PxWebApi reads the PX files correctly and exposes the tables through the API.![]()
So, please, who can help me?
--
I have tried everything but still face the same issue when running PxWebApi. Is there any official list of prerequisites for the server?
Can you please provide me with all the required components (with the exact versions) that must be installed on Windows Server for PxWebApi to run correctly?
For example:
IIS (which roles/features should be enabled?)
.NET Runtime / ASP.NET Core Runtime / Hosting Bundle (exact version number)
Any additional dependencies (e.g. SQL client, compression, etc.)
It would help a lot if you could share the full checklist of required software + versions so I can validate my server environment.
Thank you in advance for your support!
Best regards,
Hussam
Subject: Question on PxWebApi vs Standard PxWeb API
Hi Petros,
I have PxWebApi running successfully now. Thank you for your support!
I would like to understand the difference between PxWebApi and the standard PxWeb API available on the PxWeb site. Could you explain how they differ in terms of:
Functionality
Data access
Usage scenarios
This will help me better understand how to leverage PxWebApi with our own datasets.
Best regards,
Hussam