cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
120
Views
0
Helpful
0
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: RICO HESSELLUND on 23-06-2011 05:28:44 AM
<?php

$params = array('sql' => 'SELECT * from enduser');

try { $client = @new SoapClient("AXLAPI.wsdl",
array('trace'=>false,
'exceptions'=>true,
'location'=>"https://172.20.1.2:8443/axl",
'login'=>'axluser',
'password'=>'secret',
));
} catch (SoapFault $E) {     echo $E->faultstring;  }

echo "response:\n";

try {
$response = $client->executeSQLQuery($params);
} catch (SoapFault $E) {     echo $E->faultstring;  }

print_r($response);

echo "\ndone\n";
 
 
Returns the following :
 
C:\tmp\soap>php sql.php
response:
No Handler found for parameters
done
 
 
What is wrong and how do i fix it ?
 
CUCM version 7.1 and the WSDL file from the downloaded axltoolkit.

Subject: RE: php executeSQLQuery returns No "Handler found for parameters"
Replied by: RICO HESSELLUND on 25-06-2011 06:32:10 AM
Ok,.....

I feel stupid right now.

i found the problem af few days back, the problem was that PHP was unable to read the wsdl file correctly and it just said unknown functionname (unknown parameteres[]) when i did a var_dump($client->__getFunctions());

I tried copying in diffent wsdl files but little did it help.

It works now.... After i have restartet the PC....And yes, i have seen that PHP caches the wsdl file, but didnt thing about it at the time.

The file that is working for me is the file from the WSDL-AXIS catalog.

and the version if my php is :

C:\tmp\soap>php --version
PHP 5.3.6 (cli) (built: Mar 17 2011 10:48:37)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies

// Rico
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links