Documentation for Axxon PSIM 1.0.0-1.0.1.

Previous page Sending HTTP API commands using curl tool  Configuring the Technoserv integration Next page


The HTTP API allows receiving data in XML format for further processing in scripts. To send a file, perform a POST request.

General request format:

POST http://IP-address:port/psim_core/{Any}

<tag1>
    <tag2>some_data</tag2>
    <tag3>another_data</tag3>
</tag1>

Request parameters:

Parameter

Required

Description

AnyYes

Any set of valid characters can be specified, except for Event and React, for example:

  • http://127.0.0.1:8080/psim_core
  • http://127.0.0.1:8080/psim_core/Any
  • http://127.0.0.1:8080/psim_core/Custom

Note

In the requests, it is necessary to specify the port set up in the Web server settings — see Configuring the Web-server module.

Request example:

POST http://127.0.0.1:8080/psim_core/Any

<tag1>
    <tag2>some_data</tag2>
    <tag3>another_data</tag3>
</tag1>

Response example:

After receiving the data in XML format in Axxon PSIM, the following event is generated:

HTTP|1|CUSTOM_EVENT|url</psim_core/Any>,owner<SLAVE-ID>,data<PG5..90ZT4=>

Response parameters:

Parameter

Description

data

Request body (XML in the example above) base64-encoded

url Part of the posted url
  • No labels