RisPort SOAP Service

Version 1
    This document was generated from CDN thread

    Created by: koen bekaert on 28-05-2009 02:15:31 PM
    Hi there AXL specialists,
     
    A question concerning AXL query:
    We use the  Risport service: SelectCM device operation
    this one returns :

    <DirNumber xsi:type="xsd:string">5001-Registered</DirNumber>

    Can we use another query to receive only the number and not the -Registered?

    Like you have when you query via the SelectCmDeviceSIP response:
      

    soapenc:arrayType="ns1:CmDevSingleLineStatus[1]">
    <item>
    <DirectoryNumber xsi:type="xsd:string">5001</DirectoryNumber>
    <Status xsi:type="ns1:CmSingleLineStatus">Registered</Status>
    </item>
    </LinesStatus>


    anyone has some ideas? or can we use the SIP query, even the phone isn't a SIP enpoint?

    thanks

    Subject: RE: RisPort SOAP Service
    Replied by: David Staudt on 28-05-2009 03:48:27 PM
    SelectCmDeviceSIP can be used to search for non-SIP devices as well - for  you can specify SIP, SCCP, Any, etc.
     
    <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://schemas.cisco.com/ast/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
       <soapenv:Body>
          <soap:SelectCmDeviceSIP soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
             <CmSelectionCriteriaSIP xsi:type="soap:CmSelectionCriteriaSIP">
                <MaxReturnedDevices xsi:type="xsd:unsignedInt">200</MaxReturnedDevices>
                <Class xsi:type="xsd:string">Any</Class>
                <Model xsi:type="xsd:unsignedInt">255</Model>
                <Status xsi:type="xsd:string">Any</Status>
                <SelectBy xsi:type="xsd:string">Name</SelectBy>
                Any
             </CmSelectionCriteriaSIP>
          </soap:SelectCmDeviceSIP>
       </soapenv:Body>
    </soapenv:Envelope>
     
    This gave the results you are looking for with a SCCP device on my 7.0(1) UCM:
     
    ...
            <NumOfLines xsi:type="xsd:unsignedInt">2</NumOfLines>
                            <LinesStatus soapenc:arrayType="ns1:CmDevSingleLineStatus[2]" xsi:type="soapenc:Array">
                               <item xsi:type="ns1:CmDevSingleLineStatus">
                                  <DirectoryNumber xsi:type="xsd:string">1000</DirectoryNumber>
                                  <Status xsi:type="ns1:CmSingleLineStatus">Registered</Status>
                               </item>
                               <item xsi:type="ns1:CmDevSingleLineStatus">
                                  <DirectoryNumber xsi:type="xsd:string">2000</DirectoryNumber>
                                  <Status xsi:type="ns1:CmSingleLineStatus">Registered</Status>
                               </item>
                            </LinesStatus>
    ...