Hello,
I'm trying to interface PHP with WS SM7 using SOAP.
The problem is i don't know how to call functions from WSDL in php.
Here is what i wrote :
<?php
$wsdl = 'http://localhost:13080/SM/7/ConfigurationManagement.wsdl';
$options = array(
'compression'=>true,
'exceptions'=>false,
'trace'=>true
);
$serv_customers = new SoapClient($wsdl, $options);
//var_dump($serv_customers->__getFunctions());
$toto = $serv_customers->__call('CreateContact',array("ContactName"=>"TOTO "));
echo $toto;
?>
but it returns me an error :
SoapFault exception: [Client] Function ("CreateContact") is not a valid method for this service in C:\Program Files\EasyPHP 3.0\www\ServeurC\createContactSM.php:10 Stack trace: #0 C:\Program Files\EasyPHP 3.0\www\ServeurC\createContactSM.php(10): SoapClient->__call('CreateContact', Array) #1 {main}
or sometimes
Fatal error: SOAP-ERROR: Encoding: object hasn't 'model' property in C:\Program Files\EasyPHP 3.0\www\ServeurC\createContactSM.php on line 10
someone knows how exactly can we write code to call function CreateContact ?
Thx you for your help


Reply With Quote
Bookmarks