Send a Webhook to power on a device


#1

Hello,

this is my first time to create something with webcore. I am trying to control a device via webhook. For this reason i checked how the device gets controlled and i was able to catch this XML file.

   <?xml version="1.0" encoding="UTF-8"?><v:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:d="http://www.w3.org/2001/XMLSchema" xmlns:c="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:v="http://schemas.xmlsoap.org/soap/envelope/"><v:Header />

<v:Body><service xmlns="http://www.thinkhome.com.cn/" id="o0" c:root="1"><json i:type="d:string">
{"head":{"code":"120"},"body":{"authentication":
{"FUserAccount":"xxxxxxxx&#64;gmail.com","FPassword":"11111XXXXXXXx222222XXXXX"},
"action":{"FActionType":"5","FActionNo":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX","FKeyNum":"0","FAction":"1","FValue":""}}}
</json></service></v:Body></v:Envelope>

I tried many things, but I was not able to get the device started . But webcore is not showing any issues. Hope someone can help an absolut beginner. If it helps i was able to control the device with the curl command under linux but that’s it.


#2

no idea what i do wrong?!? I can’t control the device but webcore says everything is fine