# Basic XML POST using Ruby to Cisco Call Manager

**URL:** <https://www.ruby-forum.com/t/basic-xml-post-using-ruby-to-cisco-call-manager/182278>\
**Category:** Ruby\
**Created:** [January 25, 2010, 11:12pm UTC](https://www.ruby-forum.com/t/basic-xml-post-using-ruby-to-cisco-call-manager/182278 "2010-01-25T23:12:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jackster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bc8723/32.png) [@jackster](https://www.ruby-forum.com/u/jackster)\
**Post date:** [January 25, 2010, 11:12pm UTC](https://www.ruby-forum.com/t/basic-xml-post-using-ruby-to-cisco-call-manager/182278/1 "2010-01-25T23:12:50Z")

</div>

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](http://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/](http://schemas.xmlsoap.org/soap/envelope/)” xmlns:xsi=“[http://www.w3.org/2001/XMLSchema-instance](http://www.w3.org/2001/XMLSchema-instance)” xmlns:xsd=“[http://www.w3.org/2001/XMLSchema](http://www.w3.org/2001/XMLSchema)”\> SOAP-ENV:Body \<axl:getPhone xmlns:axl=“[http://www.cisco.com/AXL/1.0](http://www.cisco.com/AXL/1.0)” xsi:schemaLocation="[http://www.cisco.com/AXL/1.0](http://www.cisco.com/AXL/1.0) [http://ccmserver/schema/axlsoap.xsd](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

---

<div class="post-metadata">

**Author:** ![jackster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bc8723/32.png) [@jackster](https://www.ruby-forum.com/u/jackster)\
**Post date:** [January 26, 2010, 3:20am UTC](https://www.ruby-forum.com/t/basic-xml-post-using-ruby-to-cisco-call-manager/182278/2 "2010-01-26T03:20:51Z")

</div>

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](http://ruby-doc.org/stdlib/libdoc/soap/rdoc/index.html)

---

<div class="post-metadata">

**Author:** ![jackster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bc8723/32.png) [@jackster](https://www.ruby-forum.com/u/jackster)\
**Post date:** [January 26, 2010, 12:13pm UTC](https://www.ruby-forum.com/t/basic-xml-post-using-ruby-to-cisco-call-manager/182278/3 "2010-01-26T12:13:32Z")

</div>

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
