XML over TCP/IP

General HouseBot discussion. Any issues that don't fit into any of the other topics belong here.
Post Reply
zwaves
Member
Posts: 2
Joined: Mon Jun 30, 2008 2:41 pm

XML over TCP/IP

Post 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
Regard
Finn Olesen
http://www.zwaves.dk
Image
jaga01
Member
Posts: 10
Joined: Mon Aug 25, 2008 12:13 pm

Re: XML over TCP/IP

Post 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
Osler
HouseBot Guru
Posts: 742
Joined: Fri Feb 03, 2006 11:18 pm

Re: XML over TCP/IP

Post 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
Post Reply