06-23-2014 09:41 AM
I'm writing several methods to add gateways and gateway endpoints and I'm noticing inconsistencies between what are advertised as mandatory and optional fields in the AXL schema versus what I'm experiencing when I post content to the CUCM AXL interface.
When I post a "addGatewayEndpointAnalogAccess" method to add an analog endpoint which does not include the <callingPartySelection> element I get an error;
<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>Cannot insert a null into column (analogaccessport.tkcallingpartyselection).</faultstring><detail><axlError><axlcode>-391</axlcode><axlmessage>Cannot insert a null into column (analogaccessport.tkcallingpartyselection).</axlmessage><request>addGatewayEndpointAnalogAccess</request></axlError></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
When I include the callingPartySelection element all is fine.
When I look at the published schema, I interpret that it's an optional field;
Is <callingPartySelection> a mandatory field, or is the AXL schema incorrect?
Thanks,
Anthony
06-26-2014 07:08 AM
Hi Anthony,
Eventhough in the document Administrative XML API its not mentioned callingPartySelection and description as mandatory i found a bug CSCug89177 which mentions AXL Call addGatewayEndpointAnalogAccess description fiield not optional and it is fixed in CUCM 10.x release. I think you are using CUCM 9.1 so it could be the issue.
Thanks and Regards,
Geevarghese
06-26-2014 01:24 PM
Geevarghese,
Thanks for your response.
So is the callingPartySelection element supposed to be an optional or mandatory field?
Thanks,
Anthony
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