HomeyScript XML SOAP


#1

Hi,
Is it possible to post XML SOAP from the HomeyScript app with JavaScript?
Just need it for a sending a “wake up” to my sat receiver.

Regards
Patrik


#2

Or if there is someone how can make an app with this.

POST /upnpfun/ctrl/uuid_1586d400-1dd2-11b2-8862-e8f2e2b2314c/04 HTTP/1.1
Host: <ip_of_device>:8080
Content-Type: text/xml
SOAPACTION: “urn:adbglobal.com:service:X_ADB_RemoteControl:1#ProcessInputEvent”
Cache-Control: no-cache
Postman-Token: 72423203-45e2-4665-9173-44fc59179e5b

<s:Envelope s:encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/” xmlns:s=“http://schemas.xmlsoap.org/soap/envelope/”>
<s:Body>
<u:ProcessInputEvent xmlns:u=“urn:adbglobal.com:service:X_ADB_RemoteControl:1”>
code=115
</u:ProcessInputEvent>
</s:Body>
</s:Envelope>

The different input code translation:
116 => “POWER”
, 174 => “HOME”
, 361 => “VOD”
, 365 => “EPG”
, 367 => “APP”
, 395 => “LIST”
, 114 => “VOL-”
, 113 => “MUTE”
, 115 => “VOL+”
, 103 => “UP”
, 108 => “DOWN”
, 105 => “LEFT”
, 352 => “OK”
, 106 => “RIGHT”
, 357 => “OPT”
, 358 => “INFO”
, 402 => “PROG+”
, 403 => “PROG-”
, 158 => “BACK”
, 385 => “RADIO”
, 102 => “PORTAL”
, 388 => “TEXT”
, 398 => “RED”
, 399 => “GREEN”
, 400 => “YELLOW”
, 401 => “BLUE”
, 128 => “STOP”
, 207 => “PLAY”
, 119 => “PAUSE”
, 167 => “REC”
, 168 => “<<”
, 159 => “>>”
, 2 => “[1]”
, 3 => “[2]”
, 4 => “[3]”
, 5 => “[4]”
, 6 => “[5]”
, 7 => “[6]”
, 8 => “[7]”
, 9 => “[8]”
, 10 => “[9]”
, 11 => “[0]”];