<?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>AXL querys (get* or list*) how to get all attribute data?</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=11977432" />
  <subtitle>AXL querys (get* or list*) how to get all attribute data?</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=11977432</id>
  <updated>2013-06-18T22:39:39Z</updated>
  <dc:date>2013-06-18T22:39:39Z</dc:date>
  <entry>
    <title>RE: AXL querys (get* or list*) how to get all attribute data?</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11980597" />
    <author>
      <name>Geoffrey Carman</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11980597</id>
    <updated>2013-02-15T18:41:12Z</updated>
    <published>2013-02-15T18:41:12Z</published>
    <summary type="html">[quote=David Staudt]Looking at the schema, it shows that &lt;returnedTags&gt; is optional for getCss and required for listCss.  Glancing at a few other getXXX and listXXX requests seems to bear out that pattern: listXXX requests require a &lt;returnedTags&gt;, and any fields you want to see must be specified. 
An option to request all available fields for a listXXX request sounds like a good enhancement.  I can see that working either by behaving like the getXXX requests - where if you ommitt &lt;returnedTags&gt; than all tags are provided - or perhaps via an attribute, like &lt;returnedTags all="True"&gt;.  The first has some benefits by way of backward compatibility for older apps that are unaware of &lt;returnedTags&gt;.[/quote]
 
Thanks!!! THat is a critical distinction I did not make.  list*** requires the returnedTags, and get**** does not.  That may explain why I saw it work one way and then not again.  That really helps, catching that distinction.  Thank you!.  I like the @all='true' approach as well.
 </summary>
    <dc:creator>Geoffrey Carman</dc:creator>
    <dc:date>2013-02-15T18:41:12Z</dc:date>
  </entry>
  <entry>
    <title>RE: AXL querys (get* or list*) how to get all attribute data?</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11982038" />
    <author>
      <name>David Staudt</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11982038</id>
    <updated>2013-02-15T18:16:26Z</updated>
    <published>2013-02-15T18:16:26Z</published>
    <summary type="html">Looking at the schema, it shows that &lt;returnedTags&gt; is optional for getCss and required for listCss.  Glancing at a few other getXXX and listXXX requests seems to bear out that pattern: listXXX requests require a &lt;returnedTags&gt;, and any fields you want to see must be specified. 
An option to request all available fields for a listXXX request sounds like a good enhancement.  I can see that working either by behaving like the getXXX requests - where if you ommitt &lt;returnedTags&gt; than all tags are provided - or perhaps via an attribute, like &lt;returnedTags all="True"&gt;.  The first has some benefits by way of backward compatibility for older apps that are unaware of &lt;returnedTags&gt;.</summary>
    <dc:creator>David Staudt</dc:creator>
    <dc:date>2013-02-15T18:16:26Z</dc:date>
  </entry>
  <entry>
    <title>RE: AXL querys (get* or list*) how to get all attribute data?</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11977939" />
    <author>
      <name>Geoffrey Carman</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11977939</id>
    <updated>2013-02-15T17:59:02Z</updated>
    <published>2013-02-15T17:59:02Z</published>
    <summary type="html">Converesly, an empty &lt;returnedTags&gt; node does a little better, but not quite what I want:
send in:
    &lt;soapenv:Envelope xmlns:ns="http://www.cisco.com/AXL/API/8.5" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt;
      &lt;soapenv:Header/&gt;
      &lt;soapenv:Body&gt;
        &lt;ns:listDeviceProfile sequence="?"&gt;
          &lt;searchCriteria&gt;
            &lt;name&gt;%&lt;/name&gt;
          &lt;/searchCriteria&gt;
          &lt;returnedTags ctiid="?" uuid="?"/&gt;
        &lt;/ns:listDeviceProfile&gt;
      &lt;/soapenv:Body&gt;
    &lt;/soapenv:Envelope&gt;


Returns:
    &lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt;
      &lt;soapenv:Body&gt;
        &lt;ns:listDeviceProfileResponse xmlns:ns="http://www.cisco.com/AXL/API/8.5"&gt;
          &lt;return&gt;
            &lt;deviceProfile uuid="{E5CD8187-B81B-060B-B6F3-2829D8BB61EF}"/&gt;
            &lt;deviceProfile uuid="{ED2174F8-BF3A-9904-503E-D961DBA0DDE2}"/&gt;
 and repeat....
 
But only the UUID for all, when I want all the attributes.  So looks like &lt;returnedTags&gt; is mandatory. </summary>
    <dc:creator>Geoffrey Carman</dc:creator>
    <dc:date>2013-02-15T17:59:02Z</dc:date>
  </entry>
  <entry>
    <title>RE: AXL querys (get* or list*) how to get all attribute data?</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11977893" />
    <author>
      <name>Geoffrey Carman</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11977893</id>
    <updated>2013-02-15T17:55:19Z</updated>
    <published>2013-02-15T17:55:19Z</published>
    <summary type="html">You would think so.  I tried that earlier. 
 
sent in:
    &lt;soapenv:Envelope xmlns:ns="http://www.cisco.com/AXL/API/8.5" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt;
      &lt;soapenv:Header/&gt;
      &lt;soapenv:Body&gt;
        &lt;ns:listDeviceProfile sequence="?"&gt;
          &lt;searchCriteria&gt;
            &lt;name&gt;%&lt;/name&gt;
          &lt;/searchCriteria&gt;
        &lt;/ns:listDeviceProfile&gt;
      &lt;/soapenv:Body&gt;
    &lt;/soapenv:Envelope&gt;


 
Returns:
    &lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt;
      &lt;soapenv:Body&gt;
        &lt;soapenv:Fault&gt;
          &lt;faultcode&gt;soapenv:Server&lt;/faultcode&gt;
          &lt;faultstring&gt;Usage: Required returnedTags as empty tag or should contain requested tags&lt;/faultstring&gt;
          &lt;detail&gt;
            &lt;axlError&gt;
              &lt;axlcode&gt;5003&lt;/axlcode&gt;
              &lt;axlmessage&gt;Usage: Required returnedTags as empty tag or should contain requested tags&lt;/axlmessage&gt;
              &lt;request&gt;listDeviceProfile&lt;/request&gt;
            &lt;/axlError&gt;
          &lt;/detail&gt;
        &lt;/soapenv:Fault&gt;
      &lt;/soapenv:Body&gt;
    &lt;/soapenv:Envelope&gt;


So I beg to differ.  :)  Did get the header right I think, Auth and SOAPAction: CUCM:DB ver=8.5 listDeviceProfile</summary>
    <dc:creator>Geoffrey Carman</dc:creator>
    <dc:date>2013-02-15T17:55:19Z</dc:date>
  </entry>
  <entry>
    <title>RE: AXL querys (get* or list*) how to get all attribute data?</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11979641" />
    <author>
      <name>David Staudt</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11979641</id>
    <updated>2013-02-15T17:48:25Z</updated>
    <published>2013-02-15T17:48:25Z</published>
    <summary type="html">Just omit the &lt;returnedTags&gt; element altogether:
[b]&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/8.5"&gt;[/b]
[b]   &lt;soapenv:Header/&gt;[/b]
[b]   &lt;soapenv:Body&gt;[/b]
[b]      &lt;ns:getCss sequence="1"&gt;[/b]
[b]         &lt;name&gt;testCSS2&lt;/name&gt;[/b]
[b]      &lt;/ns:getCss&gt;[/b]
[b]   &lt;/soapenv:Body&gt;[/b]
[b]&lt;/soapenv:Envelope&gt;[/b]
[b]-------------------------------------[/b]
[b]&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt;[/b]
[b]   &lt;soapenv:Body&gt;[/b]
[b]      &lt;ns:getCssResponse xmlns:ns="http://www.cisco.com/AXL/API/8.5"&gt;[/b]
[b]         &lt;return&gt;[/b]
[b]            &lt;css uuid="{625DA07D-962D-A1E4-CBD6-EBBB68A16146}"&gt;[/b]
[b]               &lt;name&gt;testCSS2&lt;/name&gt;[/b]
[b]               &lt;description/&gt;[/b]
[b]               &lt;clause/&gt;[/b]
[b]               &lt;dialPlanWizardGenId/&gt;[/b]
[b]               &lt;members/&gt;[/b]
[b]               &lt;partitionUsage&gt;General&lt;/partitionUsage&gt;[/b]
[b]            &lt;/css&gt;[/b]
[b]         &lt;/return&gt;[/b]
[b]      &lt;/ns:getCssResponse&gt;[/b]
[b]   &lt;/soapenv:Body&gt;[/b]
[b]&lt;/soapenv:Envelope&gt;[/b]</summary>
    <dc:creator>David Staudt</dc:creator>
    <dc:date>2013-02-15T17:48:25Z</dc:date>
  </entry>
  <entry>
    <title>AXL querys (get* or list*) how to get all attribute data?</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11977431" />
    <author>
      <name>Geoffrey Carman</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=11977431</id>
    <updated>2013-02-15T17:33:06Z</updated>
    <published>2013-02-15T17:33:06Z</published>
    <summary type="html">When you look at the SOAP from the WSDL for all the get* and list* functions in AXL, you see a &lt;returnedTags&gt; node, where you leave the empty names of the filelds you wish returned.  Thus the name, returnedTags.
CUCM 8.6.1 
Is there a way to specify all attributes?  I.e. I could build this doc:
&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:listUser sequence="?"&gt;
         &lt;searchCriteria&gt;
            &lt;userid&gt;SomeUserID&lt;/userid&gt;
         &lt;/searchCriteria&gt;
         &lt;returnedTags uuid="?"&gt;
            &lt;firstName/&gt;
            &lt;middleName/&gt;
            &lt;lastName/&gt;
            &lt;userid/&gt;
            &lt;telephoneNumber/&gt;
            &lt;mailid/&gt;
            &lt;department/&gt;
            &lt;manager/&gt;
            &lt;userLocale/&gt;
            &lt;primaryExtension&gt;
                  &lt;pattern/&gt;
                  &lt;routePartitionName/&gt;
            &lt;/primaryExtension&gt;
            &lt;associatedPc/&gt;
            &lt;enableCti/&gt;
            &lt;presenceGroupName uuid="?"/&gt;
            &lt;subscribeCallingSearchSpaceName uuid="?"/&gt;
            &lt;enableMobility/&gt;
            &lt;enableMobileVoiceAccess/&gt;
            &lt;maxDeskPickupWaitTime/&gt;
            &lt;remoteDestinationLimit/&gt;
            &lt;status/&gt;
            &lt;enableEmcc/&gt;
         &lt;/returnedTags&gt;
         &lt;!--Optional:--&gt;
         &lt;skip&gt;?&lt;/skip&gt;
         &lt;!--Optional:--&gt;
         &lt;first&gt;?&lt;/first&gt;
      &lt;/ns:listUser&gt;
   &lt;/soapenv:Body&gt;
&lt;/soapenv:Envelope&gt;
 
But surely there is a better shortcut for 'all attributes'?  I say this, since in my testing, I somehow triggered what I think is that shortcut, but I lost the example in all my testing, and did not notice it stop sending all, so I have no clue what I did to get 'all attributes'?  
 </summary>
    <dc:creator>Geoffrey Carman</dc:creator>
    <dc:date>2013-02-15T17:33:06Z</dc:date>
  </entry>
</feed>

