Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

ListPhoneByDescription & ListUserByName

I am running CCM 4.1 and am having problems getting the "list" AXL API commands to work. No matter what I try I end up getting back a null set. I used the wsdl to generate the proxy class in .NET (C#). I am trying this, i'm sure i'm missing something simple because i can't get any of the list commands to work. This is what i'm trying

excerpt...

AXLAPI.ListUserByNameReq rqListUser = new ListUserByName();

rqListUser.firstname = "*";

rqListUser.lastname = "*";

AXLAPI.ListUserByNameRes rsListUser = new ListUserByNameRes();

rsListUser = objCCM.listUserByName(rqListUser);

I use a similar form for the other list commands. None work so i'm thinking it's something i'm doing. I've tried every variation of "*" "%" "* " etc. I just want to list all users. I don't get any errors, it just returns null (i have about 250 phones). It should be simple but its just not working. Any suggestions?

Thanks,

Shaun Baker

6 REPLIES

Re: ListPhoneByDescription & ListUserByName

try to add;

rqListUser.searchLimit= "0";

New Member

Re: ListPhoneByDescription & ListUserByName

I tried that, it didn't work either. I did find the problem. The "list" functions return with a different namespace than virtually ever other function (I found that out by looking at the trace log on the CCM box). Once I changed the wsdl to reflect that namespace and recompiled, it worked. I think the .NET serializer will toss anything that comes in with an unexpected namespace. I don't understand why the CCM responds with a different namespace but that's cisco.

Re: ListPhoneByDescription & ListUserByName

cool

..welcome to the club ;-)

New Member

Re: ListPhoneByDescription & ListUserByName

Where can I get that AXLAPI classes for Java?

Thanks

New Member

Re: ListPhoneByDescription & ListUserByName

NetBeans 5.5 or Eclipse 3.3 will automatically create all Java classes for you by reverse engineering WSDL file. All you have to do is call those classes. I am able to successfully get the phone list in CCM 5.x using auto-generated classes by Java IDEs.

New Member

Re: ListPhoneByDescription & ListUserByName

the CCM 5.x WSDL works fine, the 4.x one is bugged. I just used the 5.x WSDL and am careful not to call any unsupported functions.

133
Views
0
Helpful
6
Replies