06-17-2014 01:22 AM
Hi,
In normal situation, "LUser" contains an element "telephoneNumber" (Lower case t)
However, starting from CUCM 10, "listUser" returns "LUser" with element "TelephoneNumber" (Capital letter T)
I suppose it is a typo of Cisco developer since the wsdl doesn't update it.
Ivan Lo
06-19-2014 12:45 AM
Hi Lo,
I check the axlsqltoolkit of cucm 10.0 , find the listUser response of "LUser", and also find what you want like the following:
hope may help you
06-19-2014 12:49 AM
Hi chao guo,
That's why I want to point out that the axlsqltoolkit is wrong.
It should be
name="TelephoneNumber"
instead of
name="telephoneNumber"
Ivan Lo
07-04-2014 01:34 PM
Any response from Cisco on this? Developers should not have to add code to check if CallManager version 10.X, then modify code to support TelephoneNumber for some functions and telephoneNumber from other functions. This looks like a Cisco bug, one that Cisco needs to patch and fix to keep this field consistent across all functions and consistent across all versions.
07-21-2015 02:02 PM
https://tools.cisco.com/bugsearch/bug/CSCus72831/?referring_site=bugquickviewredir
This bug is fixed at the moment, but I have no time to order patches from reseller (I have no right to download myself), so I made a little kludge, which really works. I'm using C#.
Inside the generated by wsdl.exe "AXLAPIService.cs" find following class :
public partial class LUser
{
...
}
Inside this class search for the property:
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string telephoneNumber {
get {
return this.telephoneNumberField;
}
set {
this.telephoneNumberField = value;
}
}
Copy paste property and change telephoneNumber to TelephoneNumber to get this:
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string TelephoneNumber {
get {
return this.telephoneNumberField;
}
set {
this.telephoneNumberField = value;
}
}
Keep both properties inside class and build project, this worked for me.
P.S. Use telephoneNumber for requests and TelephoneNumber for responses.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide