CUCM 6.1 getLine request

Version 1
    This document was generated from CDN thread

    Created by: Julien LAFFITTE on 20-02-2009 05:28:43 PM
    Hello all,
     
    I am trying to collect the directoryNumber uuid that is send in a getLine response by the AXL interface of a CUCM 6.1.
     
    This is working correctly when I use the pattern + routePartitionName + routeFilterName way, but the uuid way is allways sending me the same answer:
     
    <SOAP-ENV:Envelope
      xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
      SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
        <SOAP-ENV:Header/>
          <SOAP-ENV:Body>
            <SOAP-ENV:Fault>
              <faultcode>SOAP-ENV:Client</faultcode>
              <faultstring>Null patterns are not allowed in the request</faultstring>
              <detail>
                <axl:Error xmlns:axl="http://www.cisco.com/AXL/API/6.1">
                  <axl:code>5003</axl:code>
                  <axl:message>Null patterns are not allowed in the request</axl:message>
                  <request>getLine</request>
                </axl:Error>
              </detail>
            </SOAP-ENV:Fault>
          </SOAP-ENV:Body>
        </SOAP-ENV:Envelope>
     
    I have tried almost everything, nothing seems to be accepted by the AXL interface.
     
    Here is the request I am sending:
     
    <SOAP-ENV:Envelope
      xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
      SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
        <SOAP-ENV:Header/>
          <SOAP-ENV:Body>
            <namesp4:getLine xmlns:namesp4="http://www.cisco.com/AXL/6.1">
              <SOAP-ENC:Array xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="axl:XUUID[1]">
                <uuid xsi:type="axl:XUUID">{1e4a4150-230d-e5b5-1a0f-86d0b0a47ea6}</uuid>
              </SOAP-ENC:Array>
            </namesp4:getLine>
          </SOAP-ENV:Body>
        </SOAP-ENV:Envelope>
     
    Does it rings a bell for someone ?
     
    I am using perl SOAP::Lite module to build the SOAP requests.
     
    Thanks in advance,
     
    Julien

    Subject: RE: CUCM 6.1 getLine request
    Replied by: David Staudt on 20-02-2009 09:30:28 PM
    Just tried a successful request against CM7.0(1), with request generated by soapUI (using Axis version of the AXL WSDL
     
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/7.0">
       <soapenv:Header/>
       <soapenv:Body>
          <ns:getLine sequence="1">
             <uuid>{6D057752-9267-7F4D-7F96-D6677D528710}</uuid>
          </ns:getLine>
       </soapenv:Body>
    </soapenv:Envelope>
     
    Note, the UUID passed is the one from the <dirn uuid=""> element returned by getPhone.
     
    Possibly either the perl SOAP library you're using isn't interpreting the WSDL properly, or the WSDL itself is malformed.  Since soapUI seems to work fine, I would suspect the former.