CUCM 9.1 AXLAPIService.cs execution time

Version 1
    This document was generated from CDN thread

    Created by: Juerg Ott on 21-01-2013 07:02:09 AM
    Hello,  i am a new user with the AXL .  i connect to a Call Manager 9.1 and use Visual Studio 2012 C# with .NET Framework 4.0. I sucessfully create my AXLAPIService.cs and i am able to do some simple querys like listPhone.. My problem is that if i start the application and try to open the interface with AXLAPIService AXLService = new AXLAPIService(ccmIp, user, password);  it will take around 25 - 35 seconds before i get a result. Is this a normal? how can i speedup this? i was make already the serialization assembly but this will not solve the performance issue. thanks Jürg

    Subject: RE: CUCM 9.1 AXLAPIService.cs execution time
    Replied by: Leandro Wajswajn on 21-01-2013 07:45:26 AM
    Hi Juerg,
    That's normal, at least that was my case with 8.6 too. The work around I found was to do the native XML SOAP calls instead of wrapping up the Webservice through VB.NET. I'm just doing the based HTTPRequest calls and reading the XML; that way it really works fast!
    Pros: Performance
    Cons: You have to parse XML responses.
    I can share a code-snippet in case you want.
    Thanks,
    Leandro

    Subject: RE: CUCM 9.1 AXLAPIService.cs execution time
    Replied by: Michael Dunsdon on 21-01-2013 08:35:11 AM
    Hi
    If you're using the autogenerated .net classes from the .wsdl file (all 250,000 lines of it) then you can also improve things considerebaly by removing any code you're not actually using.
    Can't really do that until the end though as you probably don't know yet what it is you want to use.
    Made a huge improvement to my code although in hindsight I probably should have stuck to native soap as the .net classes have their own set of issues.
     
    Mike

    Subject: RE: CUCM 9.1 AXLAPIService.cs execution time
    Replied by: Juerg Ott on 21-01-2013 09:24:40 AM
    Hi Michael, Hi Leandro,
    Thanks for your answers ... so I know it's not a mistake on my part, but only the large class that is autogenerated from the WSDL file;)
    As soon i know exactly know what functions i need, i will try to remove al the other code..
    Jürg
     

    Subject: RE: CUCM 9.1 AXLAPIService.cs execution time
    Replied by: Robert Rittenhouse on 21-01-2013 09:44:25 AM
    Does it still take a long time after you compile your application for release? This could help as well: http://developer.cisco.com/web/axl/forums/-/message_boards/message/5356009?p_p_auth=7Z6zd4NL#_19_message_5837993
     

    Subject: RE: CUCM 9.1 AXLAPIService.cs execution time
    Replied by: Juerg Ott on 22-01-2013 02:43:37 AM
    Robert Rittenhouse:
    Does it still take a long time after you compile your application for release? This could help as well: http://developer.cisco.com/web/axl/forums/-/message_boards/message/5356009?p_p_auth=7Z6zd4NL#_19_message_5837993  
      Hi Robert, without generate the serialization xml assembly it will take around 50 sec, with the serialization xml assembly it take 20-25 sec. that is still slow. do you not has this problem with your projects? Jürg  

    Subject: RE: CUCM 9.1 AXLAPIService.cs execution time
    Replied by: Adam Duval on 23-10-2013 10:41:48 PM
    Leandro Wajswajn:
    Hi Juerg,
    That's normal, at least that was my case with 8.6 too. The work around I found was to do the native XML SOAP calls instead of wrapping up the Webservice through VB.NET. I'm just doing the based HTTPRequest calls and reading the XML; that way it really works fast!
    Pros: Performance
    Cons: You have to parse XML responses.
    I can share a code-snippet in case you want.
    Thanks,
    Leandro

    Hi Leandro, I was wondering if you could post that code snippet? Cheers, Adam

    Subject: AUTO: Christopher Lamer is on RTLO (returning Mon 10/28/2013 09:00AM)
    Replied by: Christopher Lamer on 23-10-2013 10:44:21 PM
    I am out of the office from Fri 10/18/2013 02:00PM until Mon 10/28/2013
    09:00AM.

    I am currently out of the office for RTLO from 10/21/2013 - 10/25/2013,
    Returning the 28th .  If you need immediate assistance please contact the
    Enterprise Service Center at 309.494.4357.



    Note: This is an automated response to your message "New Message from Adam
    Duval in AXL Developer - Administration XML Questions: RE: CUCM 9.1
    AXLAPIService.cs execution time" sent on 10/23/2013 10:42:19 PM.

    This is the only notification you will receive while this person is away.