Selecting version used by AXLPort and AXLAPIService

Version 1
    This document was generated from CDN thread

    Created by: john katsavras on 02-07-2013 03:48:08 AM
    Hi there,
    I have downloaded from the CUCM the axlsqltoolkit.zip and using wsimport have build the consumer classes. From that I have build my application and all is good.

    My question is how can i get the AXLPort and AXLAPIService classes to use different version of the CUCM API. So for example at the moment its using ver 8 but soon i will want port my app to version 9 and would like to give the user the option of selecting different version of CUCM to interact with

    Thanks
    Alexis

    Subject: RE: Selecting version used by AXLPort and AXLAPIService
    Replied by: john katsavras on 04-07-2013 10:04:58 AM
    Really? nobody has come across this issue.. or am i asking a stupid question?  unsure

    alexis

    Subject: RE: Selecting version used by AXLPort and AXLAPIService
    Replied by: Robert Rittenhouse on 05-07-2013 02:00:29 PM
    I would think that your application would ask the person setting this software up what version of CUCM they are running. That, or i'm sure you could use a very general query that would check for the version of software that's running. After you know the version that you are dealing with, it is my understanding that you would have different sets of classes based on what version you are interacting with.

    Now, it seems like there might be a more elegant way of doing it but this is just my thought process so far. Hopefully someone else can chime in to help better explain how you would support the different versions in a more elegant way.

    http://developer.cisco.com/web/axl-developer/axl-versioning

    That page reads that you can just point to a different schema depending on the version that you are interacting with. You would just have to have some way of knowing what methods exist in what versions. I hope this helps in some way.

    Subject: RE: Selecting version used by AXLPort and AXLAPIService
    Replied by: john katsavras on 10-07-2013 03:13:42 AM
    Hi Robert,

    Thanks for the reply. I understand what your saying but let me try an explain the issue I little clearer.

    At the moment we are working with CUCM 9 and from the CUCM 9 server we go to pluging's and download axlsqltoolkit.zip. From that we use wsimport tool to generate all the ver 9 classes that let as interact with CUCM ver 9 using SOAP. 

    With all the verstion 9 class that are generated there are 2 more classes, AXLPort and AXLAPIService used to setup the connection to CUCM.

    So my question is this. When CUCM ver 10 comes out. Is there a way once a user selects the version of callmanager to pass a parameter to AXLPort and AXLAPIService classes to tell them to use version 9 or version 10 or do we go down the route of renaming AXLPort and AXLAPIService classes to AXLPort9, AXLAPIService9 and AXLPort10, AXLAPIService10 ….

    Cheers
    Alexis