AXLAPIService.cs

Version 1
    This document was generated from CDN thread

    Created by: Jason Bullock on 23-09-2009 08:55:59 PM
    I am getting this error when I create an AXLAPIService object at run time.

    <h2>Member 'XH323Device.Item' hides inherited member 'XDevice.Item', but has different custom attributes.</h2>
     
    Am I doing something wrong?

    Subject: RE: AXLAPIService.cs
    Replied by: David Staudt on 24-09-2009 05:20:21 AM
    There is a specially modified AXL WSDL file, and some specific instructions for using AXL with the .NET WSDL compiler available in the AXL SQL Toolkit.  You can get the toolkit via the Applications/Plugins menu item of the UCM web admin pages.

    Subject: RE: AXLAPIService.cs
    Replied by: Jason Bullock on 25-09-2009 01:28:14 PM
    Yes,  I am aware of the file in the sqltoolkit, which is how I got the .cs file in the first place.  I am using VS2008.  I have done all steps in the readme.txt file.  Should I be downgrading to .Net 1.0?  Just to clarify, I used the wsdl.exe of the two files under \7.1\WSDL-NET

    Subject: RE: AXLAPIService.cs
    Replied by: Jeremy Sanders on 30-11-2009 07:43:10 PM
    any resolution to this?

    Subject: RE: AXLAPIService.cs
    Replied by: Jason Bullock on 30-11-2009 07:50:19 PM
    I never did get the AXLAPIService.cs to work.  I ended up doing something along the lines of: http://developer.cisco.com/web/axl/forums/-/message_boards/message/1052603
     
    I just send it an executesql statement, parse the soap response and get my data.

    Subject: RE: AXLAPIService.cs
    Replied by: Jeremy Sanders on 30-11-2009 09:01:08 PM
    Jason,
     
    The problem appears to be the way that .Net's XML serialization works. It doesn't like for an object like XGateway that is inherited from XDevice to have properties that are inherited from the parent object but have different names in the new object.
     
    For instance Item in XGateway is called "cdpnTransformationCSS", but it is called "product" in the generic XDevice class.
     
     
    http://www.distribucon.com/blog/CommentView,guid,9f651ae9-101e-4b62-804d-37d72295da89.aspx
     
     
    He doesn't offer a solution in that link though.
     
    Anyone have any ideas?

    Subject: RE: AXLAPIService.cs
    Replied by: Jeremy Sanders on 30-11-2009 10:48:14 PM
    Well, I got it to work. I had to remove the inheritance from XDevice on all of the objects that were using it. The all appear to create their own properties anyway. I guess if I run into something that is broken because of that, I'll have to add the missing properties to the former child objects.
     
    Hope this helps someone else.