I am trying get my first php query working and having problems. I am folowing the example here
http://developer.cisco.com/web/axl/wikidocs/-/wiki/Main/Using+AXL+WSDL+with+PHP this is what my code looks like.
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php
$client = new SoapClient("https://172.16.16.101:8443/perfmonservice/services/PerfmonPort?wsdl",
array('trace'=>true,
'exceptions'=>true,
'location'=>"https://172.16.16.101:8443/axl",
'login'=>'ccmadministrator',
'password'=>'wdictevf',
));
$response = $client->getUser(array("userid"=>"jmunson"));
echo("First Name: ".$response->return->user->firstname)."<br>";
echo("Last Name: ".$response->return->user->lastname);
?>
</body>
</html>
and this is the error I am getting.
Fatal error: Uncaught SoapFault exception: Function ("getUser") is not a valid method for this service in /var/www/Cisco/index.php:14 Stack trace: #0 /var/www/Cisco/index.php(14): SoapClient->__call('getUser', Array) #1 /var/www/Cisco/index.php(14): SoapClient->getUser(Array) #2 {main} thrown in /var/www/Cisco/index.php on line 14
I also tried using $client = new SoapClient("/var/www/AXLAPI.wsdl",
putting just the
AXLAPI.wsdl and axlsoap.xsd files that i downloaded from my call manager in the plugins section ( Plugins > Cisco AXL Toolkit > axlsqltoolkit > schema > current ) in the root www directory. and that gave me this different error.
Notice: Undefined property: stdClass::$firstname in /var/www/Cisco/index.php on line 15 First Name:
Notice: Undefined property: stdClass::$lastname in /var/www/Cisco/index.php on line 16 Last Name:
Thank you for any help.