> For the complete documentation index, see [llms.txt](https://docs.emobiq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.emobiq.com/emobiq-client/006-actions-and-visual-logic/action-reference/cordova/dataset/rawcall.md).

# 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

1. 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.)<br>

   ![](/files/gVUOmRcz3KnRvpPgHO5a)

   ![](/files/sB6JKSbBThDkGmuFrgDy)
2. Call the function "rawCall" and define the connector, path, method, set the function "toObject"to options.\
   connector: rest\
   path: getCustomer\
   method: post\
   options: toObject<br>

   ![](/files/FnKAccWSeIykUVU1zoV2)
3. Define toObject.\
   result: raw

   ![](/files/rENxK6nP0ToIwC4O5MmJ)
4. Add a console after callback function for display the response from console.

   ![](/files/CsfRdTRWj91SjS8Pu1aG)

### Result

![](/files/Cyw3tbutCy8AzEpsy95D)

## Notes

* N/A
