HTTP resource definitions
The HTTP interface is used to send and receive data and information from HTTP server. The HTTP resource definition table defines the data that is sent to or received from the defined HTTP data points.
File location
<WorkspaceDirectory>\DataFiles\xio.HTTP.ResourceDefinitions.dat
Â
Changes within this definition file are taking effect immediately. No server restart is required.
Â
Col# | Parameter | Description | Scope | Unit | Mandatory / default value |
---|---|---|---|---|---|
1 | Name | it is the key that identifies the resource within the data point definitions. The name can freely be chosen but has to be unique. | string | None | mandatory |
2 | Type | type of encoding. | XML, JSON, URL encoded, Text, Form Data | None | mandatory |
3 | Resource content | it defines the content that is excepted at the HTTP server. The structure and type depends on the used encoding and on the direction (polling or update). Examples and more information can be found within this tutorial. As an alternative, the content can be specified within a separate file. The file name must be specified in "Resource file name" | string | None | empty |
4 | Resource file name | here a file name can be defined that contains content that is excepted at the HTTP server. The file must be located in <WorkspaceDirectory>\DataFiles\. The structure and type depends on the used encoding and on the direction (polling or update). Examples and more information can be found within this tutorial. As an alternative, the content can be specified directly in "Resource content" | file name | None | empty |
Â