cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
384
Views
0
Helpful
0
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: Rashmi Shamsundar on 21-11-2011 08:09:21 PM
Hi All,
 
        I am currently using AXL api to fetch IP address for a Cisco phone. I am receiving a lot more data than I actually require. Is there any way to limit the reponse so that I receive only the IP address. The requests and responses are mentioned as below :
 
Request:
 
<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">*</Item></multiRef></soapenv:Body></soapenv:Envelope>
 
 
Response:
...





<!--
  @page { margin: 0.79in }
  PRE { font-family: "Liberation Serif" }
  P { margin-bottom: 0.08in }
-->

<pre><SelectCmDeviceResult xsi:type="ns1:SelectCmDeviceResult">
<TotalDevicesFound xsi:type="xsd:unsignedInt">200</TotalDevicesFound>
<CmNodes soapenc:arrayType="ns1:CmNode[7]" xsi:type="soapenc:Array" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<item xsi:type="ns1:CmNode"><ReturnCode xsi:type="ns1:RisReturnCode">Ok</ReturnCode><Name xsi:type="xsd:string">10.128.32.21</Name>
<NoChange xsi:type="xsd:boolean">false</NoChange><CmDevices soapenc:arrayType="ns1:CmDevice[200]" xsi:type="soapenc:Array">
<item xsi:type="ns1:CmDevice"><Name xsi:type="xsd:string">SEP0004F2E19303</Name><IpAddress xsi:type="xsd:string">139.132.242.81</IpAddress>
<DirNumber xsi:type="xsd:string">46957-Registered</DirNumber><Class xsi:type="ns1eviceClass">Phone</Class><Model xsi:type="xsd:unsignedInt">431</Model>
<Product xsi:type="xsd:unsignedInt">330</Product>
... And lot more


Thanks & Regards
Rashmi</pre>
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links