AXL with different versions of CUCM

Version 1
    This document was generated from CDN thread

    Created by: Robert Labrie on 16-08-2010 11:03:07 PM
    My organization has 22 sites with 2x each CUCMs. Each site is independent, there is no trunking between them. There are different versions in use between 5.1, 6.0 and 7.1. My question is, can I use the same (say 5.1) WSDL for all, or does the WSDL have to match the version I'm connecting to? If it is the latter, is there some way to programatically select the correct WSDL (either downloading it via HTTP or probing the version) before creating a new SOAP object?
     
    I'm new to SOAP but not to XML, PHP and HTTP. I'll be using PHP 5.1.x.
     
    Thanks for your reply.
     
    Rob

    Subject: RE: AXL with different versions of CUCM
    Replied by: David Staudt on 17-08-2010 06:15:02 PM
    Many core parts of the AXL API have remained relatively unchanged during that span, so you may be able to get away with using the same XML requests for multiple versions depending on what those requests are.  AXL prior to 8.0 was more 'loosely coupled' to the WSDL and you should be able to make it work in PHP by only changing the SOAPAction header version.  
     
    If the operations you are performing are failry straightforward, you may find it easier to program AXL at the XML level rather than the WSDL level, i.e. creating and receiving the XML via a DOM object like Xerces/MSXML.

    Subject: RE: AXL with different versions of CUCM
    Replied by: Sascha Monteiro on 23-08-2010 12:39:53 AM
     
     
    You have to use the correct schema for the cucm version you are connecting to.
     
    if you only use a limited set of elements (like User, Phone, DeviceProfile) it might be worth building your own library based on XML,
    that is what I have done and the beans return the correct xml based on the cucm version that is specified