There was an error reflecting type 'APIResponse'

Version 1
    This document was generated from CDN thread

    Created by: Mayank Sharma on 19-11-2010 01:35:04 PM
    Hi,
     
    I have been using the AXLAPIService class, generated from the WSDL for 6.1 for my applications.
    I am now building an application for adding, updating and deleting phones and lines where I am seeing some problems using the older version of the API since there are some new things in newer call managers.
     
    I tried using the API for 7.1 and modified the class constructor and added a ICertificatePolicy-derived class to the AXLAPIService.cs class as the guide says. 
     
    Now when try to create an object of the class by providing the CucmIP, Username and Password, it fails with this error:
    There was an error reflecting type 'APIResponse'
     
    Any clues on how to fix this?
     
    Thanks,
    Max

    Subject: RE: There was an error reflecting type 'APIResponse'
    Replied by: Erik Briggs on 28-02-2011 01:20:51 PM
    We're running CUCM 8.02 and I am using the 7.1 api with C# successfully.  You could also try downloading the CUAE toolkit and grabbing the Metreos.SOAP DLL files and linking them into your project.  This is essentially the same as trying to compile your own DLL.

    Subject: RE: There was an error reflecting type 'APIResponse'
    Replied by: Kenneth Sinfield on 28-02-2011 09:08:50 AM
    Hi Max,

    did you ever get this fixed. I'm getting the same issue?

    Thanks,
    Ken.

    Subject: RE: There was an error reflecting type 'APIResponse'
    Replied by: Mayank Sharma on 28-02-2011 01:11:07 PM
    Hi Ken-
     
    No I was not able to fix that issue. Hoping someone here has more information on this.
     
    Thanks,
    Max

    Subject: RE: There was an error reflecting type 'APIResponse'
    Replied by: Mayank Sharma on 01-03-2011 10:06:55 AM
    Hi Ken-

    I have been using 6.1 version uptil now, and was doing Find-Replace 6.1 - 7.1 to make it work with newer versions of call manager. But our call manager is at version 8.5 now and I have to start converting code I am trying to use the newest API otherwise it will out of date soon.

    Thanks,
    Max

    Subject: RE: There was an error reflecting type 'APIResponse'
    Replied by: Kenneth Sinfield on 28-02-2011 09:04:45 PM
    Hi Max,

    I decided to try the 7.0 WSDL with Visual Studio 2008. Worked like a charm. I have no problems using this to connect to CUCM 7.1 at the moment either.

    Ken.