Problem:
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.
Solution:
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.
Comments
0 comments
Please sign in to leave a comment.