"Hello World" Logout
The following example logs out a user who is logged into device SEP003094C25B15
When creating the request body, it is recommended to first build in XML format and then encode the XML before sending to the CUCM server. The first part of the example shows the XML unencoded and the second part of the example shows the XML encoded.
Request
POST /emservice/EMServiceServlet
Content-Type: application/x-www-form-urlencoded
Unencoded
1 2 3 4 5 6 7 8 9 | < request >
< appinfo >
< appid >appid</ appid >
< appcertificate >apppasswd</ appcertificate >
</ appinfo >
< logout >
< devicename >SEP003094C25B15</ devicename >
</ logout > </ request > |
Encoded
1 2 3 4 5 6 7 8 9 | xml=%3Crequest%3E %3CappInfo%3E %3CappID%3Eappid%3C/appID%3E %3CappCertificate%3Eapppasswd%3C/appCertificate%3E %3C/appInfo%3E %3Clogout%3E %3CdeviceName%3ESEP003094C25B15%3C/deviceName%3E %3C/logout%3E %3C/request%3E |
Success Response
1 2 3 | < response >
< success /> </ response > |