XML::Simple or SOAP::Lite?

Version 1
    This document was generated from CDN thread

    Created by: JOHN SHEAHAN on 01-02-2010 07:26:03 PM
    I was able to successfully use the getVersion.pl script available on Cisco's site but now I trying to get more info like a list of users or a list of devices. I see that some people are using XML::Simple and some are using SOAP::Lite.
     
    What is the preferred method for polling data and creating new devices and users?
     
    thanks
     
    john

    Subject: RE: XML::Simple or SOAP::Lite?
    Replied by: JOHN SHEAHAN on 01-02-2010 09:55:09 PM
    Thanks Dan but the link you provided to the examples doesn't seem to come up.
     
    My goal is to be able to create users and assign phones to them.
     
    A question I have is that since I currently apply a template to the new users I create, is it possible to use a template when creating a user through AXL?
     
    thanks
     
    john

    Subject: RE: XML::Simple or SOAP::Lite?
    Replied by: Dan-Anders Hook on 01-02-2010 09:34:37 PM
    Hi,
     
    Not quite sure what You are asking for, but I've been using SOAP::Lite for a long time and it has worked fine for me. See the thread http://developer.cisco.com/web/axl/forums/-/message_boards/message/1904800 for a sample on how to pull user data. The various methods available, for example listUserByName, listDeviceByNameAndClass, addPhone etc is documented in the Cisco Unified Communications Manager Admin XML Interface Spec which you can download at http://developer.cisco.com/web/axl/docs. If you want to poll runtime data however you must use the Serviceability API which works different than the AXL API.
     
    Kind regards,
     
    //Dan

    Subject: RE: XML::Simple or SOAP::Lite?
    Replied by: Dan-Anders Hook on 01-02-2010 10:06:49 PM
    Hi,
     
    Don't know what went wrong with the link. It was a link to a post on the forum, so if you click on the "Administration XML Questions" and then look at the post named "Perl and AXL" you will find it. When creating users with the addUser method you could very well let some of the fields be filled in with "template" information while other information is user specific. Not quite sure what you mean though.
     
    Cheers,
     
    //Dan

    Subject: RE: XML::Simple or SOAP::Lite?
    Replied by: JOHN SHEAHAN on 01-02-2010 11:51:59 PM
    Thanks Dan, I will look through the posts.
     
    As far as the "template" goes, when I create a user from the regular GUI Administrative inteface, there is an option to apply a template there. By using a template, I can avoid having to fill out every redundant field for each user I create manually because by applying the template selected, it fills in many of the fields for me. For instance, I have a Michigan users template that I select when creating Michigan users which saves me the trouble of having to fill out all the fields that I would normally have to fill out for users in Michigan such as the city, the office, the hiring manager etc.... it saves alot of time when creating users manually through the GUI.
     
    My question is, when I create users through a PERL script using SOAP, is there a way for me to apply this same "Michigan Template" that exists on my Call Manager server or would I have to recreate that template in my script and apply it that way?
     
    thanks for all the help.
     
    John

    Subject: RE: XML::Simple or SOAP::Lite?
    Replied by: JOHN SHEAHAN on 02-02-2010 07:40:23 PM
    In answer to my own question :-) :

    "My question is, when I create users through a PERL script using SOAP, is there a way for me to apply this same "Michigan Template" that exists on my Call Manager server or would I have to recreate that template in my script and apply it that way?"

    I found there is a way to use stored templates on the Call Manager, the XML would look like this:

                         <phoneTemplateName>Michigan Template</phoneTemplateName>

    Thanks

    John