Run PowerServer Web APIs

For quick running and testing purpose, you can start the Web APIs from the PowerBuilder IDE.

After you build & deploy the PowerServer project to the server (Kestrel or IIS), you can start the PowerServer Web APIs by clicking the Run Project button in the IDE toolbar. The Web API URL to run is based on the site URL specified in the project painter.

  • When the project is deployed to the local Kestrel server, the Run Project button will first start the Web APIs with the local Kestrel server and then run the installable cloud app.

  • When the project is deployed to the IIS server, the Run Project button will run the installable cloud app (and the corresponding Web APIs will be started by IIS automatically).

In the production environment and for optimal runtime performance, you should publish Web APIs to the dedicated server, such as IIS, Kubernetes, Docker etc. For instructions, refer to Server setup.

Before deploying the Web APIs to the production environment, you can first try to find out if the Web APIs can run at all in the development environment. This can help you confirm that the Web APIs itself is compiled and packaged correctly. For instructions, refer to How to figure out if the deployed Web APIs can run at all.

There are a few common factors that may cause PowerServer Web APIs to fail to start (especially on IIS), and you are highly recommended to address these factors first. For more details, refer to PowerServer Web APIs failed to start.