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