485
edits
m (typo) |
m (Added some pointer where you can find demo code.) |
||
Line 7: | Line 7: | ||
Consume a REST service: | Consume a REST service: | ||
See [https://docs.dataaccess.com/dataflexhelp/mergedProjects/VDFClassRef/cJsonHttpTransfer.htm cJsonHttpTransfer] and [https://docs.dataaccess.com/dataflexhelp/mergedProjects/Welcome/JSON_Parsing_and_Transfer.htm JSON Parsing and Transfer] | See [https://docs.dataaccess.com/dataflexhelp/mergedProjects/VDFClassRef/cJsonHttpTransfer.htm cJsonHttpTransfer] and [https://docs.dataaccess.com/dataflexhelp/mergedProjects/Welcome/JSON_Parsing_and_Transfer.htm JSON Parsing and Transfer] | ||
You can find a demo of how-to use cJsonHttpTransfer in DAWs WebOrder workspace. | |||
== Server side == | == Server side == | ||
Creating REST web services has been made easy since DataFlex 19.1 with the introduction of the [https://docs.dataaccess.com/dataflexhelp/mergedProjects/VDFClassRef/cWebHttpHandler.htm cWebHttpHandler] handler. | Creating REST web services has been made easy since DataFlex 19.1 with the introduction of the [https://docs.dataaccess.com/dataflexhelp/mergedProjects/VDFClassRef/cWebHttpHandler.htm cWebHttpHandler] handler. | ||
For an example see the DemoSimpleRestService.wo file in the WebOrder example workspace. | |||
You can create a REST service with earlier DataFlex versions, see [https://www.unicorninterglobal.com/Company-White-Papers-Creating-RESTful-JSON-Web-Services-in-DataFlex-868 here] for how-to do so in DataFlex 19.0, but it is probably better to use DataFlex 19.1 in that case. | You can create a REST service with earlier DataFlex versions, see [https://www.unicorninterglobal.com/Company-White-Papers-Creating-RESTful-JSON-Web-Services-in-DataFlex-868 here] for how-to do so in DataFlex 19.0, but it is probably better to use DataFlex 19.1 in that case. |