rawCall
Description
Directly access or call any REST API Web Service.
Input / Parameters
No | Name | Description | Data Type | Required |
---|---|---|---|---|
1 | connector | Name of connector and created in the Services and Global Components page. | String | Yes |
2 | path | The function from the Web Service to be executed. | String | Yes |
3 | method | The REST method to be used. | String | Yes |
4 | options | Object | Object | Yes |
5 | header | No | ||
6 | data | This contains the parameter in the function being called. | Object | No |
7 | file | This contains the file parameters in the function being called. | Object | No |
8 | extra | No |
Output
Callback
Video
Example
The user wants to call the RAW(REST) Web Service.
Step
To create RAW(REST) Connector in Services and define the Name and url. Name: rest url: http://203.116.137.100:51059/Training/Main.asmx ( Please refer to the picture below, there is a example of main web service.We have take one of the operation which is getCustomer as an example to apply for this function.)
Call the function "rawCall" and define the connector, path, method, set the function "toObject"to options. connector: rest path: getCustomer method: post options: toObject
Define toObject. result: raw
Add a console after callback function for display the response from console.
Result
Notes
N/A
Last updated