cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
560
Views
0
Helpful
0
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: UUser SNUUser on 28-04-2010 10:00:23 AM
Hi,
 
I'm from Germany and hope you can understand my problem =)
 
I'm trying to handle the API for a callmanager 6.1.
In order to do so I created the AXLAPIService.cs with the wsdl.exe.
The I did the recommended fixes and put it into a Visual Studio WPF-Application.
To test my work, I created a simple Button_Click procedure as follows:
 
        private void button1_Click(object sender, RoutedEventArgs e)
        {
            string ccmIp,user,password;

            ccmIp=textBox1.Text;
            user=textBox2.Text;
            password=passwordBox1.Password;

            AXLAPIService ccmserv = new AXLAPIService(ccmIp, user, password);
        }
 
In the last row I get the following error:
 
InvalidOperationException
Temporäre Klasse kann nicht generiert werden (result=1).
error CS0030: Der Typ UpdateUserGroupReqAddMembers kann nicht in UpdateUserGroupReqMembers konvertiert werden.
error CS0030: Der Typ UpdateUserGroupReqAddMembers kann nicht in UpdateUserGroupReqRemoveMembers konvertiert werden.
error CS0029: Der Typ UpdateUserGroupReqRemoveMembers kann nicht implizit in UpdateUserGroupReqAddMembers konvertiert werden.
error CS0029: Der Typ UpdateUserGroupReqMembers kann nicht implizit in UpdateUserGroupReqAddMembers konvertiert werden.
 
(The type cannot be converted.)
 
Does anyone know, how to solve this problem?
Attached you will find my AXLAPIService.cs.
 
Thank you
Martin

Subject: RE: InvalidOperationException: Cannot convert filetype C#
Replied by: Benoit Potty on 10-05-2010 02:00:24 PM
Hi Martin,

I had a look at you AXLAPIService.cs. I noticed that you didn't fix a problem that gave me similar issue...

have a lool on your line 31951 and replace

XUserUserGroupUserRolesUserRole[][] userRolesField;

by
 
XUserUserGroupUserRolesUserRole[] userRolesField;
and on your line 31969 replace
 
public XUserUserGroupUserRolesUserRole[][] userRoles {
 
by
 
public XUserUserGroupUserRolesUserRole[] userRoles {
 
Hope this helps,
 
Regards,
 
Benoit Potty

Subject: RE: InvalidOperationException: Cannot convert filetype C#
Replied by: Martin Zeichner on 22-05-2010 10:29:20 AM
Hi,
 
Thanks for your response.
I already fixed this issue, but now I'm running into a different problem.
My program seems to work fine, but the AXLMonitor from the callmanager shows no connection or requests.
In my program I tried a request to show me all phones on the callmanager.
 
It runs without any error, but I don't get any response.
I attached my sources and the AXL-Class.
 
It's a WPF-Application and I'm using VS 2008 Prof.

Regards,
Martin Zeichner

Subject: RE: InvalidOperationException: Cannot convert filetype C#
Replied by: Julien ESPIE on 03-06-2010 01:27:14 PM
Hi,
 
I'm encountering the same problem as Martin.
 
I've done the  [][] -> [] trick in the C# code but, no chance, it doesn't work properly.
 
Does anyone have a solution to that error ?
 

Impossible de générer une classe temporaire (result=1).
error CS0030: Impossible de convertir le type 'UpdateUserGroupReqAddMembers' en 'UpdateUserGroupReqMembers'
error CS0030: Impossible de convertir le type 'UpdateUserGroupReqAddMembers' en 'UpdateUserGroupReqRemoveMembers'
error CS0029: Impossible de convertir implicitement le type 'UpdateUserGroupReqRemoveMembers' en 'UpdateUserGroupReqAddMembers'
error CS0029: Impossible de convertir implicitement le type 'UpdateUserGroupReqMembers' en 'UpdateUserGroupReqAddMembers'

 
(in french, in german, it seems to be an international error ;)
 
Thank you in advance
Julien

Subject: RE: InvalidOperationException: Cannot convert filetype C#
Replied by: Laurent TRELET on 04-06-2010 12:46:34 PM
Hello !
 
I'm quite reassured reading your messages. Indeed, i met exactly the same issue trying to use this auto-generated AXL-Class.
 
Martin, did you succeed in fixing the problem ? Does anybody have an example illustrating how to use this class ?
 
Thank you in advance.
 
Regards.

Subject: RE: InvalidOperationException: Cannot convert filetype C#
Replied by: Martin Zeichner on 08-06-2010 08:02:04 AM
Hi again,
 
I have no idea how to solve the problem.
In my second post I described another error, but in this case I used a class I downloaded from this Forum.
 
Yesterday I tried to compile the class on my own again and I'm running into the same problem with the type conversion.
I also deletet the second [] in the two lines.
 
Why aren't there any examples on this website how to compile, fix and use the API in C# when it's officially supported?
How can we solve our problem with the type conversion?
 
Regards
Martin
 
P.S.: Please find attached my fresh compiled and fixed class.

Subject: RE: InvalidOperationException: Cannot convert filetype C#
Replied by: Breno Lucena on 03-01-2012 08:19:36 AM
Hello Guys,
I´m almost the same issue:
Unable to generate a temporary class (result=1).
error CS0030: Cannot convert type 'UpdateUserGroupReqAddMembers' to 'UpdateUserGroupReqMembers'
error CS0030: Cannot convert type 'UpdateUserGroupReqAddMembers' to 'UpdateUserGroupReqRemoveMembers'
error CS0029: Cannot implicitly convert type 'UpdateUserGroupReqRemoveMembers' to 'UpdateUserGroupReqAddMembers'
error CS0029: Cannot implicitly convert type 'UpdateUserGroupReqMembers' to 'UpdateUserGroupReqAddMembers'
The error response posted above, was generated by the following code:
        private void callDoDeviceReset()
        {
            try
            {
                DeviceResetReq resetReq = new DeviceResetReq();
                resetReq.isHardReset = true;
                resetReq.ItemElementName = ItemChoiceType41.deviceName;
                resetReq.Item = deviceName;               
                DeviceResetRes resetResp = AxlApiService.doDeviceReset(resetReq);
                if (!string.IsNullOrEmpty(resetResp.@return))
                {
                  
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
The AXLAPIService.cs I am using follow attached here.
Does anyone have a clue for this issue?
Regards.
Breno Lucena
 

Subject: RE: InvalidOperationException: Cannot convert filetype C#
Replied by: Breno Lucena on 03-01-2012 08:23:08 AM
I forgot to attach my AXLAPIService.cs.
 
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links