Simple AXL and PHP Script

Version 1
    This document was generated from CDN thread

    Created by: Jason P Holland on 02-11-2010 03:13:40 PM
    Hello,
     
    I'm trying to get a simple PHP script written to query AXL.  This is on CUCM 7.1.5.
     
    --------------------
    <?php
    $client = new SoapClient("/home/www/html/soap/AXLAPI.wsdl",
     array('trace'=>true,
     'exceptions'=>true,
     'location'=>"http://server1:8443/axl/",
     'login'=>'user',
     'password'=>'*****',
    ));
    $response = $client->getUser(array("userid"=>"mholland"));
    var_dump($response)
    $response=$client->getLine(array("pattern"=>"911"));
    var_dump($response);
    ?>
    ---------------------
     
    The response I'm getting back is
     

    PHP Fatal error:  Uncaught SoapFault exception:  Error Fetching http headers in /home/www/html/soap/soap_test.php:11
    Stack trace:
    #0 [internal function]: SoapClient->__doRequest('<?xml version="...', 'http://server1:8...', 'getUser', 1, 0)
    #1 /home/www/html/soap/soap_test.php(11): SoapClient->__call('getUser', Array)
    #2 /home/www/html/soap/soap_test.php(11): SoapClient->getUser(Array)
    #3 {main}
      thrown in /home/www/html/soap/soap_test.php on line 11


    Can someone offer some help?  I was able to use __getFunctions to return a list of SOAP functions, so appears that things are working.  But simple calls don't seem to work.  Thank you!


    Jay

    Subject: RE: Simple AXL and PHP Script
    Replied by: Jason P Holland on 02-11-2010 09:32:09 PM
    I seem to have found the solution to this.  For those searching for an answer, I had to get a new AXLAPI.wsdl file from the axlsqltoolkit.zip file.  Had to use the version from axlsqltoolkit\schema\7.1\WSDL-AXIS\.  Seems to be pulling information just fine now.
     
    Jay