06-24-2016 07:19 PM
I see that my SOAP calls that are being made using SOAP UI are not working whenever it involved CSS (calling search space) name as one of the parameters of the SOAP requests. The reason was due to the underscore in the CSS name. Below, I have given two kinds of requests and responses which I encountered.
1) (With an underscore in the CSS name)
REQUEST
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/9.1">
<soapenv:Header/>
<soapenv:Body>
<ns:getCss sequence="?">
<!--You have a CHOICE of the next 2 items at this level-->
<name>US-HQ-911-Security_CSS</name>
<!--<uuid>{F5FB0038-2589-A2A4-BDBA-A116239AA897}</uuid>-->
<!--Optional:-->
<returnedTags uuid="?">
<!--Optional:-->
<name>?</name>
<!--Optional:-->
<description>CSS for 911 forward calls to Security Phone</description>
<!--Optional:-->
<clause>?</clause>
<!--Optional:-->
<dialPlanWizardGenId>?</dialPlanWizardGenId>
<!--Optional:-->
<members>
<!--Zero or more repetitions:-->
<member uuid="?">
<!--Optional:-->
<routePartitionName uuid="?">?</routePartitionName>
<!--Optional:-->
<index>?</index>
</member>
</members>
<!--Optional:-->
<partitionUsage>?</partitionUsage>
</returnedTags>
</ns:getCss>
</soapenv:Body>
</soapenv:Envelope>
RESPONSE:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server</faultcode>
<faultstring>union value '?' does not match any members of 'XInteger in namespace http://www.cisco.com/AXL/API/9.1'</faultstring>
<detail>
<axlError>
<axlcode>-1</axlcode>
<axlmessage>union value '?' does not match any members of 'XInteger in namespace http://www.cisco.com/AXL/API/9.1'</axlmessage>
<request>getCss</request>
</axlError>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
2)(without an underscore in the CSS name)
REQUEST
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/9.1">
<soapenv:Header/>
<soapenv:Body>
<ns:getCss sequence="?">
<!--You have a CHOICE of the next 2 items at this level-->
<name>US-HQ-911-Security-CSS</name>
<!--<uuid>{F5FB0038-2589-A2A4-BDBA-A116239AA897}</uuid>-->
<!--Optional:-->
<returnedTags uuid="?">
<!--Optional:-->
<name>?</name>
<!--Optional:-->
<description>CSS for 911 forward calls to Security Phone</description>
<!--Optional:-->
<clause>?</clause>
<!--Optional:-->
<dialPlanWizardGenId>?</dialPlanWizardGenId>
<!--Optional:-->
<members>
<!--Zero or more repetitions:-->
<member uuid="?">
<!--Optional:-->
<routePartitionName uuid="?">?</routePartitionName>
<!--Optional:-->
<index>?</index>
</member>
</members>
<!--Optional:-->
<partitionUsage>?</partitionUsage>
</returnedTags>
</ns:getCss>
</soapenv:Body>
</soapenv:Envelope>
RESPONSE
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server</faultcode>
<faultstring>Item not valid: The specified US-HQ-911-Security-CSS was not found</faultstring>
<detail>
<axlError>
<axlcode>5007</axlcode>
<axlmessage>Item not valid: The specified US-HQ-911-Security-CSS was not found</axlmessage>
<request>getCss</request>
</axlError>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
Conclusion: Since all the CSS names like thousands have already been assigned the name consisting of an underscore, I need a work around to make SOAP API calls to the callmanager with the CSS name consisting of an underscore.
Furthermore: I have also noticed that, even in the XML developers cookbook(version 8.5) the demonstration for all the SOAP API calls with CSS names, have of an underscore. May be the calls work for callmanager with versions 8.5, But I am unable to make calls for the callmanager version 9.1. I can't fall back to 8.5 to make this work either. I have to make this work on Verison 9.1
The link to cookbook version 8.5 : https://developer.cisco.com/site/axl/learn/axl-developer-cookbook/
Any kind of suggestion or help is dearly appreciated. I am looking forward to have response and resolve this issue ASAP.
07-12-2016 11:55 PM
Hi Saptharsh,
I have moved your post under AXL community. Can you please check the version compatibility.
Got one related url -Different AXL version compatability
Thanks and Regards,
Geevarghese
07-13-2016 06:33 PM
Hi Saptharsh,
Please try my samples.
1) Using name to getCss.
.....
<ns:getCss sequence="1">
<name> + <Your name value> + </name>
</ns:getCss>
.....
2) Using uuid to getCss
.....
<ns:getCss sequence="1">
<uuid> + <Your uuid value> + </uuid>
</ns:getCss>
.....
Note: Your name value = CSS_DEMO_ALL_INTERNAL
Your uuid value = {1A725CFF-FBC0-D263-2925-67C487A01AD5}
You do not need to set </returnedTags>, you will get all elements. And if you want it returns some individual elements
you can set as follow: <returnedTags><name/><description/><clause/><partitionUsage/></returnedTags>
Hope this would help you.
Regards
Thuy Doan
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