I am trying to build a request to the Risport that includes multiple phones for which I need info on. The goal is to minimize the number of requests I need to do so that I don't hit the 15 req/minute throttle.
The request I have built only sends back one response - the thing is I don't know if that is because my request is not set correctly or if I have an error in my code handling the response.
Here is the request:
<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><ns1:SelectCmDevice soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://schemas.cisco.com/ast/soap/"><StateInfo xsi:type="xsd:string"/>
<CmSelectionCriteria href="#id0"/>
</ns1:SelectCmDevice>
<multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:CmSelectionCriteria" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://schemas.cisco.com/ast/soap/">
<MaxReturnedDevices xsi:type="xsd:unsignedInt">200</MaxReturnedDevices>
<Class xsi:type="xsd:string">Phone</Class><Model xsi:type="xsd:unsignedInt">255</Model><Status xsi:type="xsd:string">Registered</Status><NodeName xsi:type="xsd:string" xsi:nil="true"/>
<SelectBy xsi:type="xsd:string">Name</SelectBy>
<SelectItems soapenc:arrayType="ns2:SelectItem[1]" xsi:type="soapenc:Array"><item href="#id1"/>
</SelectItems></multiRef>
<multiRef id="id1" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:SelectItem" xmlns:ns3="http://schemas.cisco.com/ast/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<Item xsi:type="xsd:string">SEP0021BBBBBBBB</Item>
<Item xsi:type="xsd:string">SEP0015AAAAAAAA</Item>
<Item xsi:type="xsd:string">SEP002199999999</Item
<Item xsi:type="xsd:string">SEP002144444444</Item>
<Item xsi:type="xsd:string">SEP002333333333</Item>
<Item xsi:type="xsd:string">SEP0021A2222222</Item>
<Item xsi:type="xsd:string">SEP0021A1111111</Item>
<Item xsi:type="xsd:string">SEP0021A7777777</Item>
<Item xsi:type="xsd:string">SEP0021A6666666</Item>
<Item xsi:type="xsd:string">SEP0021A5555555</Item>
</multiRef></soapenv:Body></soapenv:Envelope> And the response:
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><ns1:SelectCmDeviceResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://schemas.cisco.com/ast/soap/"><SelectCmDeviceResult xsi:type="ns1:SelectCmDeviceResult"><TotalDevicesFound xsi:type="xsd:unsignedInt">1</TotalDevicesFound><CmNodes soapenc:arrayType="ns1:CmNode[4]" xsi:type="soapenc:Array" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"><item xsi:type="ns1:CmNode"><ReturnCode xsi:type="ns1:RisReturnCode">NotFound</ReturnCode><Name xsi:type="xsd:string">10.10.72.5</Name><NoChange xsi:type="xsd:boolean">false</NoChange><CmDevices soapenc:arrayType="ns1:CmDevice[0]" xsi:type="soapenc:Array"/></item><item xsi:type="ns1:CmNode"><ReturnCode xsi:type="ns1:RisReturnCode">NotFound</ReturnCode><Name xsi:type="xsd:string">10.10.72.5</Name><NoChange xsi:type="xsd:boolean">false</NoChange><CmDevices soapenc:arrayType="ns1:CmDevice[0]" xsi:type="soapenc:Array"/></item><item xsi:type="ns1:CmNode"><ReturnCode xsi:type="ns1:RisReturnCode">NotFound</ReturnCode><Name xsi:type="xsd:string">10.10.249.5</Name><NoChange xsi:type="xsd:boolean">true</NoChange><CmDevices soapenc:arrayType="ns1:CmDevice[0]" xsi:type="soapenc:Array"/></item><item xsi:type="ns1:CmNode"><ReturnCode xsi:type="ns1:RisReturnCode">Ok</ReturnCode><Name xsi:type="xsd:string">10.10.249.6</Name><NoChange xsi:type="xsd:boolean">false</NoChange><CmDevices soapenc:arrayType="ns1:CmDevice[1]" xsi:type="soapenc:Array"><item xsi:type="ns1:CmDevice"><Name xsi:type="xsd:string">SEP0021A5555555</Name><IpAddress xsi:type="xsd:string">10.212.23.103</IpAddress><DirNumber xsi:type="xsd:string">11173709-Registered</DirNumber><Class xsi:type="ns1
eviceClass">Phone</Class><Model xsi:type="xsd:unsignedInt">115</Model><Product xsi:type="xsd:unsignedInt">115</Product><BoxProduct xsi:type="xsd:unsignedInt">0</BoxProduct><Httpd xsi:type="ns1:CmDevHttpd">Yes</Httpd><RegistrationAttempts xsi:type="xsd:unsignedInt">0</RegistrationAttempts><IsCtiControllable xsi:type="xsd:boolean">true</IsCtiControllable><LoginUserId xsi:type="xsd:string">smith</LoginUserId><Status xsi:type="ns1:CmDevRegStat">Registered</Status><StatusReason xsi:type="xsd:unsignedInt">0</StatusReason><PerfMonObject xsi:type="xsd:unsignedInt">2</PerfMonObject><DChannel xsi:type="xsd:unsignedInt">0</DChannel><Description xsi:type="xsd:string">John Smith</Description><H323Trunk xsi:type="ns1:H323Trunk"><ConfigName xsi:type="xsd:string" xsi:nil="true"/><TechPrefix xsi:type="xsd:string" xsi:nil="true"/><Zone xsi:type="xsd:string" xsi:nil="true"/><RemoteCmServer1 xsi:type="xsd:string" xsi:nil="true"/><RemoteCmServer2 xsi:type="xsd:string" xsi:nil="true"/><RemoteCmServer3 xsi:type="xsd:string" xsi:nil="true"/><AltGkList xsi:type="xsd:string" xsi:nil="true"/><ActiveGk xsi:type="xsd:string" xsi:nil="true"/><CallSignalAddr xsi:type="xsd:string" xsi:nil="true"/><RasAddr xsi:type="xsd:string" xsi:nil="true"/></H323Trunk><TimeStamp xsi:type="xsd:unsignedInt">1248226572</TimeStamp></item></CmDevices></item></CmNodes></SelectCmDeviceResult><StateInfo xsi:type="xsd:string"><StateInfo><Node Name="10.10.72.5" SubsystemStartTime="1243547706" StateId="4875" TotalItemsFound="0" TotalItemsReturned="0"/><Node Name="10.10.72.5" SubsystemStartTime="1243556092" StateId="11867" TotalItemsFound="0" TotalItemsReturned="0"/><Node Name="10.10.249.5" SubsystemStartTime="0" StateId="0" TotalItemsFound="0" TotalItemsReturned="0"/><Node Name="10.10.249.6" SubsystemStartTime="1248226531" StateId="336" TotalItemsFound="1" TotalItemsReturned="1"/></StateInfo></StateInfo></ns1:SelectCmDeviceResponse> Any insight would be much appreciated !