API-没有应用服务器的调用

API-calls without Appserver

我用谷歌搜索并尝试了一些解决方案,但到目前为止,没有任何效果。 我正在尝试从 4gl / OpenEdge 过程中进行一些 API-calls (REST)。但是,没有可用的 AppServer,我不知道是否有必要进行 API 调用。我不是 OpenEdge 专家,我的 none 同事有线索 :X 有没有人知道这是否可能,如果可能,有一个这样做的例子吗?谢谢

您需要一个 HTTP 客户端来执行调用。

RTFM ;)

https://documentation.progress.com/output/ua/OpenEdge_latest/index.html#page/dvpin%2Fmaking-http(s)-requests-from-abl-applications.html%23wwconnect_header

那里有一些例子:

https://github.com/PeterJudge-PSC/http_samples 我用它来实现我对 11.5 和 11.6 的调用(GET、POST 等)。效果很好。