<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>RE: listPhone AXL Question</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_recent_posts?p_l_id=" />
  <subtitle>RE: listPhone AXL Question</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_recent_posts?p_l_id=</id>
  <updated>2013-05-22T01:18:41Z</updated>
  <dc:date>2013-05-22T01:18:41Z</dc:date>
  <entry>
    <title>RE: listPhone AXL Question</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=13746719" />
    <author>
      <name>David Staudt</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=13746719</id>
    <updated>2013-04-01T22:49:32Z</updated>
    <published>2013-04-01T22:49:32Z</published>
    <summary type="html">listPhone already uses 'LIKE' in its comparison expression (vs '='), however the version of IDS supports few wildcard expressions in the LIKE:

http://publib.boulder.ibm.com/infocenter/idshelp/v115/index.jsp?topic=%2Fcom.ibm.sqls.doc%2Fids_sqs_1439.htm</summary>
    <dc:creator>David Staudt</dc:creator>
    <dc:date>2013-04-01T22:49:32Z</dc:date>
  </entry>
  <entry>
    <title>RE: listPhone AXL Question</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=13743901" />
    <author>
      <name>David Staudt</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=13743901</id>
    <updated>2013-04-01T21:26:02Z</updated>
    <published>2013-04-01T21:26:02Z</published>
    <summary type="html">listPhone is going to be case sensitive.  You could possibly try a SQL query, like:
 
&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/8.5"&gt;
   &lt;soapenv:Header/&gt;
   &lt;soapenv:Body&gt;
      &lt;ns:executeSQLQuery sequence="1"&gt;
         &lt;sql&gt;select name from device where UPPER(name)=UPPER("ECPDSTAUDT")&lt;/sql&gt;
      &lt;/ns:executeSQLQuery&gt;
   &lt;/soapenv:Body&gt;
&lt;/soapenv:Envelope&gt;
-------------------------------
&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt;
   &lt;soapenv:Body&gt;
      &lt;ns:executeSQLQueryResponse xmlns:ns="http://www.cisco.com/AXL/API/8.5"&gt;
         &lt;return&gt;
            &lt;row&gt;
               &lt;name&gt;ECPdstaudt&lt;/name&gt;
            &lt;/row&gt;
         &lt;/return&gt;
      &lt;/ns:executeSQLQueryResponse&gt;
   &lt;/soapenv:Body&gt;
&lt;/soapenv:Envelope&gt;
However, take care with this query, as it won't be able to use any indexes (i.e. on 'name'), and probably requires a table scan with UPPER() operation on every row in the device table (potentially 10s of thousands of rows) when it runs.</summary>
    <dc:creator>David Staudt</dc:creator>
    <dc:date>2013-04-01T21:26:02Z</dc:date>
  </entry>
</feed>

