getLine using pattern rather than uuid with cucm 8.0

Version 1
    This document was generated from CDN thread

    Created by: aaron aaron.steinke on 28-04-2011 10:04:04 PM
    We've finally upgraded to CUCM 8 (from 4.0) so i'm plowing through the frustrating task of re-writing all my automation scripts, and i'm getting bogged down with a simple getLine....
     
    I get a response using getLine and the extension number using 'SOAPAction= CUCM: DB ver=7.0' and the following:
     
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:xsi="[url=http://www.w3.org/2001/XMLSchema-instance">]http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
      <axl:getLine xmlns:axl="http://www.cisco.com/AXL/7.0"
            xsi:schemaLocation="http://www.cisco.com/AXL/7.0
            http://ccmserver/schema/axlsoap.xsd
            sequence="1">
        <pattern>1234</pattern>
      </axl:getLine>
    </soapenv:Body>
    </soapenv:Envelope>
     
    I get a response using getLine and a UUID with 'SOAPAction= CUCM: DB ver=8.0' and the following:
     
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:xsi="[url=http://www.w3.org/2001/XMLSchema-instance">]http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
      <axl:getLine xmlns:axl="http://www.cisco.com/AXL/API/8.0"
            xsi:schemaLocation="http://www.cisco.com/AXL/API/8.0
            http://ccmserver/schema/axlsoap.xsd" sequence="1">
        <uuid>{12345678-abcd-9012-efga-34567890abcd}</uuid>
        </axl:getLine>
      </soapenv:Body>
    </soapenv:Envelope>
     
    But when i send a getLine with a pattern and  'SOAPAction= CUCM: DB ver=8.0' i receive:
     
    <?xml version='1.0' encoding='UTF-8'?>
    <soapenv:Envelope xmlns:soapenv="[url=http://schemas.xmlsoap.org/soap/envelope/">]http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
      <soapenv:Fault>
        <faultcode>soapenv:Server</faultcode>
        <faultstring>Item not valid: The specified Line was not found</faultstring>
        <detail>
          <axlError>
            <axlcode>5007</axlcode>
            <axlmessage>Item not valid: The specified Line was not found</axlmessage>
            <request>getLine</request>
          </axlError>
        </detail>
      </soapenv:Fault>
    </soapenv:Body>
    </soapenv:Envelope>
     
    Any thoughts? i feel like i'm missing something obvious
     
    The same script does a number of transactions that need to be using CUCM: DB ver=8.0 or they fail, so mixing and matching would mean duplicating a number of functions for ver7 & ver8 - which makes it little ugly... and of course, if i knew the UUID of the lines in question, i wouldn't need to do a getLine...

    Subject: RE: getLine using pattern rather than uuid with cucm 8.0
    Replied by: aaron aaron.steinke on 28-04-2011 10:51:47 PM
    oh look... half an hour later and i can answer my own question...

    I've been using the v8.5 schema reference (because its multiple files, unlike 8.0's single big file that uses a gig of ram to open!)
    In 8.5 you can use UUID or pattern (with route partition optional), in 8.0 the route partition is required if using pattern

    so the following works:
    <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>
      <axl:getLine xmlns:axl="http://www.cisco.com/AXL/API/8.0"
            xsi:schemaLocation="http://www.cisco.com/AXL/API/8.0
            http://red-melcm10.redenergy.com.au/schema/axlsoap.xsd"
           sequence="1">
        <pattern>1234</pattern>
        <routePartitionName>Default_PT</routePartitionName>
      </axl:getLine>
    </soapenv:Body>
    </soapenv:Envelope>

    Subject: RE: getLine using pattern rather than uuid with cucm 8.0
    Replied by: Nicolas BOUCHARD on 26-12-2011 08:42:57 AM


    I've been using the v8.5 schema reference (because its multiple files, unlike 8.0's single big file that uses a gig of ram to open!)
    In 8.5 you can use UUID or pattern (with route partition optional), in 8.0 the route partition is required if using pattern

     
    Hi,
     
    I'm in 8.6.2.21008-1 and routePartitionName seems to be required because without it, an exception is returned by the CUCM. But, I don't find a AXL Schema Reference updated (last version seems to be 8.5(1)) and according to this version, routePartitionName is optional.

    Subject: RE: getLine using pattern rather than uuid with cucm 8.0
    Replied by: David Staudt on 05-01-2012 01:19:13 PM
    Can you post the AXL XML request and response?  routePartition should be optional.  However note that the same DN can appear in multiple partitions - getLine specifying only the DN may not return the actual DN you intend, if partitions are in use (common in larger deployments.)  In general you will want to specify lines in getLine via UUID or DN+partition when possible.

    Subject: RE: getLine using pattern rather than uuid with cucm 8.0
    Replied by: Nicolas BOUCHARD on 05-01-2012 02:51:50 PM
    Hi,

    I agree with you.
    Below examples:

    <soap-env:envelope xmlns:ns1="http://www.cisco.com/AXL/API/8.5"
    xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
      <soap-env:body>
        <ns1:getline>
          <pattern>88720256</pattern>
          <returnedtags>
            <pattern>1</pattern>
            <description>1</description>
            <usage>1</usage>
            <routepartitionname>1</routepartitionname>
            <sharelineappearancecssname>1</sharelineappearancecssname>
          </returnedtags>
        </ns1:getline>
      </soap-env:body>
    </soap-env:envelope>
    Give this answer :
    <soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
      <soapenv:body>
        <soapenv:fault>
          <faultcode>soapenv:Server</faultcode>
          <faultstring>Item not valid: The specified Line was not
          found</faultstring>
          <detail>
            <axlerror>
              <axlcode>5007</axlcode>
              <axlmessage>Item not valid: The specified Line was not
              found</axlmessage>
              <request>getLine</request>
            </axlerror>
          </detail>
        </soapenv:fault>
      </soapenv:body>
    </soapenv:envelope>

    While :
    <soap-env:envelope xmlns:ns1="http://www.cisco.com/AXL/API/8.5"
    xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
      <soap-env:body>
        <ns1:getline>
          <pattern>88720256</pattern>
          <routepartitionname>Global_DN</routepartitionname>
          <returnedtags>
            <pattern>1</pattern>
            <description>1</description>
            <usage>1</usage>
            <routepartitionname>1</routepartitionname>
            <sharelineappearancecssname>1</sharelineappearancecssname>
          </returnedtags>
        </ns1:getline>
      </soap-env:body>
    </soap-env:envelope>
    Give this :
    <soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
      <soapenv:body>
        <ns:getlineresponse xmlns:ns="http://www.cisco.com/AXL/API/8.5">
          <return>
            <line uuid="{BE3CF0D3-8666-332D-13A1-5411B8F53618}">
              <pattern>88720256</pattern>
              <description>Ligne de Service</description>
              <usage>Device</usage>
              <routepartitionname uuid="{76D28E76-88DF-E63C-3AE2-5F546E588410}">
              Global_DN</routepartitionname>
              <sharelineappearancecssname uuid="{BFFF21D9-9677-9146-F7A2-084F8D80A013}">
              CSS_Logout</sharelineappearancecssname>
            </line>
          </return>
        </ns:getlineresponse>
      </soapenv:body>
    </soapenv:envelope>

    BR,

    Subject: RE: getLine using pattern rather than uuid with cucm 8.0
    Replied by: Chikeobi Njaka on 09-02-2012 04:07:20 AM
    Hi,
    Having the same problem here, even when using UUID. Here is my request:

    **************************************************
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Body>
      <axl:getLine xmlns:axl="http://www.cisco.com/AXL/API/8.5" sequence="-380527027" xsi:schemaLocation="http://www.cisco.com/AXL/API/8.5 http://10.28.2.151/schema/axlsoap.xsd">
       <uuid>{6D5F989B-1C4D-24CC-9F59-B35F5E218711}</uuid>
       <returnedTags>
            <pattern/>
            <description/>
            <usage/>
            <routePartitionName/>
            <callForwardAll>
              <forwardToVoiceMail/>
              <callingSearchSpaceName/>
              <secondaryCallingSearchSpaceName/>
              <destination/>
            </callForwardAll>
            <callForwardBusy>
              <forwardToVoiceMail/>
              <callingSearchSpaceName/>
              <destination/>
            </callForwardBusy>
            <callForwardBusyInt>
              <forwardToVoiceMail/>
              <callingSearchSpaceName/>
              <destination/>
            </callForwardBusyInt>
            <callForwardNoAnswer>
              <forwardToVoiceMail/>
              <callingSearchSpaceName/>
              <destination/>
              <duration/>
            </callForwardNoAnswer>
            <callForwardNoAnswerInt>
              <forwardToVoiceMail/>
              <callingSearchSpaceName/>
              <destination/>
              <duration/>
            </callForwardNoAnswerInt>
            <callForwardNoCoverage>
              <forwardToVoiceMail/>
              <callingSearchSpaceName/>
              <destination/>
            </callForwardNoCoverage>
            <callForwardNoCoverageInt>
              <forwardToVoiceMail/>
              <callingSearchSpaceName/>
              <destination/>
            </callForwardNoCoverageInt>
            <callForwardOnFailure>
              <forwardToVoiceMail/>
              <callingSearchSpaceName/>
              <destination/>
            </callForwardOnFailure>
            <callForwardAlternateParty>
              <forwardToVoiceMail/>
              <callingSearchSpaceName/>
              <destination/>
              <duration/>
            </callForwardAlternateParty>
            <callForwardNotRegistered>
              <forwardToVoiceMail/>
              <callingSearchSpaceName/>
              <destination/>
            </callForwardNotRegistered>
            <callForwardNotRegisteredInt>
              <forwardToVoiceMail/>
              <callingSearchSpaceName/>
              <destination/>
            </callForwardNotRegisteredInt>
            <autoAnswer/>
            <voiceMailProfileName/>
       </returnedTags>
      </axl:getLine>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    **************************************************
    and the response is:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
      <soapenv:Body>
        <soapenv:Fault>
          <faultcode>soapenv:Server</faultcode>
          <faultstring>Item not valid: The specified Line was not found</faultstring>
          <detail>
            <axlError>
              <axlcode>5007</axlcode>
              <axlmessage>Item not valid: The specified Line was not found</axlmessage>
              <request>getLine</request>
            </axlError>
          </detail>
        </soapenv:Fault>
      </soapenv:Body>
    </soapenv:Envelope>

    I got the UUID straight from the getPhone response from the return tag <lines><line>....</lime></lines>

    Subject: RES: New Message from Chikeobi Njaka in Administration XML (AXL) - Administ
    Replied by: Victor Castro on 09-02-2012 05:56:53 AM
    Hi All,

    How can I cancel my account or stop to receive e-mail from this forum, please?

    Thank very much.

    Att,
    Víctor Castro
    Desenvolvimento
    Wittel

    ¿Esta mensagem é endereçada exclusivamente à(s) pessoa(s) e/ou instituições acima indicadas e pode conter informações confidenciais, particulares ou privilegiadas. O uso dessas informações por pessoas não autorizadas está sujeito às penas da lei."
    "This message is intended only for the named person's and/or entity's use and may contain confidential, proprietary or legally privileged information. The misuse of the information contained herein is subject to legal penalties."

    De: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
    Enviada em: quinta-feira, 9 de fevereiro de 2012 07:07
    Para: cdicuser@developer.cisco.com
    Assunto: New Message from Chikeobi Njaka in Administration XML (AXL) - Administration XML Questions: RE: getLine using pattern rather than uuid with cucm 8.0

    Chikeobi Njaka has created a new message in the forum "Administration XML Questions":

    --------------------------------------------------------------
    Hi,
    Having the same problem here, even when using UUID. Here is my request:

    **************************************************
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Body>
    <axl:getLine xmlns:axl="http://www.cisco.com/AXL/API/8.5" sequence="-380527027" xsi:schemaLocation="http://www.cisco.com/AXL/API/8.5 http://10.28.2.151/schema/axlsoap.xsd<http://www.cisco.com/AXL/API/8.5%20http:/10.28.2.151/schema/axlsoap.xsd>">
    <uuid>{6D5F989B-1C4D-24CC-9F59-B35F5E218711}</uuid>
    <returnedTags>
    <pattern/>
    <description/>
    <usage/>
    <routePartitionName/>
    <callForwardAll>
    <forwardToVoiceMail/>
    <callingSearchSpaceName/>
    <secondaryCallingSearchSpaceName/>
    <destination/>
    </callForwardAll>
    <callForwardBusy>
    <forwardToVoiceMail/>
    <callingSearchSpaceName/>
    <destination/>
    </callForwardBusy>
    <callForwardBusyInt>
    <forwardToVoiceMail/>
    <callingSearchSpaceName/>
    <destination/>
    </callForwardBusyInt>
    <callForwardNoAnswer>
    <forwardToVoiceMail/>
    <callingSearchSpaceName/>
    <destination/>
    <duration/>
    </callForwardNoAnswer>
    <callForwardNoAnswerInt>
    <forwardToVoiceMail/>
    <callingSearchSpaceName/>
    <destination/>
    <duration/>
    </callForwardNoAnswerInt>
    <callForwardNoCoverage>
    <forwardToVoiceMail/>
    <callingSearchSpaceName/>
    <destination/>
    </callForwardNoCoverage>
    <callForwardNoCoverageInt>
    <forwardToVoiceMail/>
    <callingSearchSpaceName/>
    <destination/>
    </callForwardNoCoverageInt>
    <callForwardOnFailure>
    <forwardToVoiceMail/>
    <callingSearchSpaceName/>
    <destination/>
    </callForwardOnFailure>
    <callForwardAlternateParty>
    <forwardToVoiceMail/>
    <callingSearchSpaceName/>
    <destination/>
    <duration/>
    </callForwardAlternateParty>
    <callForwardNotRegistered>
    <forwardToVoiceMail/>
    <callingSearchSpaceName/>
    <destination/>
    </callForwardNotRegistered>
    <callForwardNotRegisteredInt>
    <forwardToVoiceMail/>
    <callingSearchSpaceName/>
    <destination/>
    </callForwardNotRegisteredInt>
    <autoAnswer/>
    <voiceMailProfileName/>
    </returnedTags>
    </axl:getLine>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    **************************************************
    and the response is:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
    <soapenv:Fault>
    <faultcode>soapenv:Server</faultcode>
    <faultstring>Item not valid: The specified Line was not found</faultstring>
    <detail>
    <axlError>
    <axlcode>5007</axlcode>
    <axlmessage>Item not valid: The specified Line was not found</axlmessage>
    <request>getLine</request>
    </axlError>
    </detail>
    </soapenv:Fault>
    </soapenv:Body>
    </soapenv:Envelope>

    I got the UUID straight from the getPhone response from the return tag <lines><line>....</lime></lines>
    --
    To respond to this post, please click the following link:

    <http://developer.cisco.com/web/axl/forums/-/message_boards/view_message/5120238>

    or simply reply to this email.

    Subject: RE: getLine using pattern rather than uuid with cucm 8.0
    Replied by: David Staudt on 09-02-2012 11:30:04 AM
    Note the getPhone response includes a primary key value for the line appearance instance and for the directory number instance.  You'll want to use the UUID for the directory number in getLine:
     
    <lines>
        <line uuid="{BE22C219-20E1-18B0-404B-620A87737223}">
            <index>1</index>
            <label/>
            <asciiLabel/>
            <display/>
            <dirn uuid="{8739DA29-4740-E10A-A0CD-FF3FF425D502}">

    Subject: RE: getLine using pattern rather than uuid with cucm 8.0
    Replied by: Esteban Monge on 11-05-2012 03:34:22 PM




    I've been using the v8.5 schema reference (because its multiple files, unlike 8.0's single big file that uses a gig of ram to open!)
    In 8.5 you can use UUID or pattern (with route partition optional), in 8.0 the route partition is required if using pattern



     
    Hi,
     
    I'm in 8.6.2.21008-1 and routePartitionName seems to be required because without it, an exception is returned by the CUCM. But, I don't find a AXL Schema Reference updated (last version seems to be 8.5(1)) and according to this version, routePartitionName is optional.

     
     
    I use the version 8.5 and I get the same problem when I send only the pattern.
    I make this request using soap in php but if I use an external library as · "NuSOAP" thescript runs without any problem

    ?

    thanks

    Subject: RE: getLine using pattern rather than uuid with cucm 8.0
    Replied by: Esteban Monge on 11-05-2012 03:37:29 PM
    I use the version 8.5 and I get the same problem when I send only the pattern.
    I make this request using soap in php but if I use an external library as · "NuSOAP" the script runs without any problem

    ?

    thanks