Basic XML POST using Ruby to Cisco Call Manager

  • Thread starter jackster the jackle
  • Start date
J

jackster the jackle

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">
<phoneName>SEP222222222245</phoneName>
</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
 
J

jackster the jackle

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,836
Messages
2,569,750
Members
45,545
Latest member
rapter____0

Latest Threads

Top