Basic XML POST using Ruby to Cisco Call Manager

I have been tasked with writing a ruby script to poll the XML/SOAP
interface on the Cisco Call Manager phone system.

I have never done anything with XML in the past.

From the Cisco documentation, I need to make this XML request using
Ruby:

POST :8443/axl/
Host: axl.myhost.com:8443
Accept: text/*
Authorization: Basic bGFycnk6Y3VybHkgYW5kIG1vZQ==
Content-type: text/xml
SOAPAction: “CUCM:DB ver=6.0”
Content-length: 613
<SOAP-ENV:Envelope
xmlns:SOAP-ENV=“http://schemas.xmlsoap.org/soap/envelope/
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance
xmlns:xsd=“http://www.w3.org/2001/XMLSchema”>
SOAP-ENV:Body
<axl:getPhone xmlns:axl=“http://www.cisco.com/AXL/1.0
xsi:schemaLocation="http://www.cisco.com/AXL/1.0
http://ccmserver/schema/axlsoap.xsd
" sequence=“1234”>
SEP222222222245
</axl:getPhone>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

I would be greatly appreciative if someone can show me the best way to
do this request using Ruby.

thanks

jackster

That’s SOAP a generic (and gross) RPC protocol. I don’t know anything
about SOAP but soap4r is in the standard library.
http://ruby-doc.org/stdlib/libdoc/soap/rdoc/index.html

I don’t know anything about SOAP either but many of the new network
appliances offer SOAP interfaces so I might have to try and figure it
out.

thanks for the help

jack