1. ? ?
  2. PowerBuilder
  3. Tuesday, 13 July 2021 00:44 AM UTC

1,比如我想把系统里面数据共享出来,提供服务通过接口给别的系统去调用(json方式), pb2019有这功能吗?如果有怎样处理,能否给个范例

 

2. 还有我怎样去调用别人系统给的接口(json方式) , 也请给个范例

   谢谢!

 

Mark Lee @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 13 July 2021 09:14 AM UTC
  2. PowerBuilder
  3. # 1

Hi ,

 

你可以下载如下link的案例学习一下这两个问题

https://github.com/Appeon/PowerBuilder-RestClient-Example 

 这个PB应用案例中是基于Apppeon PowerBuilder 2019 R3版本开发,将介绍的功能之一有展示如何使用RestClient 调用Web APIs。

相关示例代码有:

//提交Json数据

webapi.pbl\ n_cst_webapi_salesorder.of_savechanges()
comman.pbl\n_cst_restclient.of_execute_func()

//接收json数据

webapi.pbl\ n_cst_webapi_salesorder.of_winopen()

 

Regards,

 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.