11-23-2016 11:01 PM
Hi,
According to https://developer.cisco.com/site/sxml/documents/api-reference/risport/#selectcmdevice-response-format , I use the following SOAP request to get response:
<!--RisPort70 API - SelectCmDeviceExt - Request-->
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://schemas.cisco.com/ast/soap">
<soapenv:Header/>
<soapenv:Body>
<soap:selectCmDeviceExt>
<soap:StateInfo></soap:StateInfo>
<soap:CmSelectionCriteria>
<soap:MaxReturnedDevices>1000</soap:MaxReturnedDevices>
<soap:DeviceClass>Any</soap:DeviceClass>
<soap:Model>255</soap:Model>
<soap:Status>Any</soap:Status>
<soap:NodeName></soap:NodeName>
<soap:SelectBy>Name</soap:SelectBy>
<soap:SelectItems>
<!--Zero or more repetitions:-->
<soap:item>
<soap:Item>SEPE0D173E54512</soap:Item>
</soap:item>
</soap:SelectItems>
<soap:Protocol>Any</soap:Protocol>
<soap:DownloadStatus>Any</soap:DownloadStatus>
</soap:CmSelectionCriteria>
</soap:selectCmDeviceExt>
</soapenv:Body>
</soapenv:Envelope>
I saved the SOAP request in Ristest.xml and run the command " curl -k -u jialing-cucm02:sheldon123CC -H "Content-type: text/xml;" -H "SOAPAction:CUCM:DB ver=11.5" -d @Ristest.xml https://tipbu-cucm-jialinli02:8443/axl/", but I got an error response:
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault xmlns:axis2ns11="http://schemas.xmlsoap.org/soap/envelope/">
<faultcode>axis2ns11:Client</faultcode>
<faultstring>The endpoint reference (EPR) for the Operation not found is https://tipbu-cucm-jialinli02:8443/axl/services/AXLAPIService and the WSA Action = CUCM:DB ver=11.5 selectCmDeviceExt</faultstring>
<detail />
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
Solved! Go to Solution.
11-28-2016 12:04 AM
I found a useful guide:
https://developer.cisco.com/site/sxml/learn/soap-ui-tutorial/
11-28-2016 12:04 AM
I found a useful guide:
https://developer.cisco.com/site/sxml/learn/soap-ui-tutorial/
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