Using XML-RPC standard over IP
pbrinckmann
Junior Member
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?
Comments
-
Ip_udp_2way;
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);pbrinckmann wrote: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? -
Did not know about the IP_UDP_2WAY way. Thanks. I tried that also, but still no luck.
-
Do you have any documentation on this process, I would like to see also the make/module of the IP bridge.pbrinckmann wrote:Did not know about the IP_UDP_2WAY way. Thanks. I tried that also, but still no luck.
-
It a Codian-MCU. Here is the API for it.
-
OK, This does not look to me like that it uses UDP. This uses HTTP with the POST method. HTTP uses TCP/IP.
// 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...pbrinckmann wrote:It a Codian-MCU. Here is the API for it. -
I am trying to control this same product with no luck as well. Any update on how this went and if it uses TCP or UDP. The manual says UDP
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums