Using XML-RPC standard over IP
pbrinckmann
Posts: 11
I am trying to control an IP Bridge that only talks XML over IP. The XML format has to be XML-RPC2 standard and it is sent by UDP packets only.
I opened a client port using the bridge's IP address, port 80, using UDP. Then I sent out an XML formated string. I also opened a server using the same port hoping to get a reply. Nothing. The command should have created a virtual room on the bridge but nothing happened.
I verified I was going out the IP port by sending it to myself and I received that.
Does anybody have any ideas?
I opened a client port using the bridge's IP address, port 80, using UDP. Then I sent out an XML formated string. I also opened a server using the same port hoping to get a reply. Nothing. The command should have created a virtual room on the bridge but nothing happened.
I verified I was going out the IP port by sending it to myself and I received that.
Does anybody have any ideas?
0
Comments
You should not need to open a server, did you use two_way_udp?
IP_CLIENT_OPEN(XMLSocket.Port, '192.168.1.100', 1000, IP_UDP_2WAY);
// This is your HTTP Post Header Message, each of the header lines should end with a CRLF.
POST /RPC2 HTTP/1.1
User-Agent: Frontier/5.1.2 (WinNT)
Host: 10.2.1.100
// This describes your cotent.
Content-Type: text/xml
// This says how many bytes are in the content
Content-length: 713
// End of header
// This is the begining of your content, using the RPC2 Format
<?xml version="1.0"?>
<methodCall>
...
</methodCall> CRLF CRLF <- two are needed at the end...
NetLinx should be able to do all this with no problems...