|menuconfig||Protocols->SOAP (XML RPC)|
Ethersex supports the SOAP protocol over HTTP, which allows for easier communication of Ethersex with programs of any kind. The functions can be used directly in the program code with SOAP.
First, the protocol needs to be enabled, and then the support for it in the embedded web server.
| | Protocols ---> | | ... | | [*] SOAP (XML RPC) | | | | Applications ---> | | ... | | [*] HTTP Server ---> | | ... | | [*] SOAP backend | |
To make Ethersex functions available for SOAP the M4 macro soap_rpc is used. The following example is from services/clock/clock_soap.c
/* -- Ethersex META -- soap_rpc(soap_rpc_time, "time") */
The following script can be used as a starting point for your own SOAP requests.