Page 1 of 1
XML over TCP/IP
Posted: Mon Jun 30, 2008 2:54 pm
by zwaves
hello.
is it possible to send an xml command over TCP
I have a system of Innovus (zwave) which may receive Xml to the regime z-wave with
I have a PDF guide here
http://forum.innovus.dk/yaf_postst57_XM ... ption.aspx
Excuse my poor English
Re: XML over TCP/IP
Posted: Mon Aug 25, 2008 3:05 pm
by jaga01
Hello Finn, Did you ever get an answer for your question. I have invested in a Nevo S70 remote control and I also have the innovus house controller. Today i asked Innovus exately the same question. I really need to send xml over tcp.
BRDGS
Jacob G. from denmark
Re: XML over TCP/IP
Posted: Mon Aug 25, 2008 4:32 pm
by Osler
You will need to do some work, but this should get you started. You will need to create a script and a script device to accomplish this.
Code: Select all
Dim oXMLDOM
Dim oXMLHTTP
Dim strXML
Dim XMLResponse
strXML = "<root><mhx f=""get"" seqnr=""onGetRooms""><rooms/></mhx></root>\0"
Set oXMLDOM = CreateObject("Microsoft.XMLDOM")
XMLDOM.loadXML strXML 'load the string into oXMLDOM to convert it into an xml document
Set oXMLHTTP = CreateObject("Microsoft.XMLHTTP")
oXMLHTTP.open "POST" ,"http://<IP Address>:8081",False
oXMLHTTP.send oXMLDOM.xml 'send the xml document created in XMLDOM to the server
XMLResponse = oXMLHTTP.responseXML 'retrieve the xml document sent by the server
Google for how to use XMLHTTP and XMLDOM to enhance the script and make it do what you want.
Osler