WebService PHP 5 to IIS 6
Bonjour,
voici mon objectif: A partir d'un client php5, je veux appeler un webservice en SOAP
Le serveur est un IIS6 sur un Windows 2003 avec ASP.NET framework 2.0.50727
Voici mon client php5:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
<?php
ini_set('soap.wsdl_cache_enabled', 0);
$params = array ('action'=>'PING','param'=>'');
$wsdlurl ="http://ipserveur/WebService/methode.asmx?wsdl";
try {
$client = new SoapClient($wsdlurl, array('trace' => 1,'soap_version' => SOAP_1_1));
$return = $client->__soapCall("methode",$params);
var_dump($return);
}
catch (SoapFault $fault) {
echo $fault;
}
?> |
Quand je lance le client, voici le retour :
SoapFault exception: [soap:Server] Server was unable to process request. --->Object reference not set to an instance of an object.
in /home.xxxx/xxxx/www/xml/ws3.php:12 Stack trace: #0 /xxxx/xxxx/www/xml/ws3.php(12): SoapClient->__soapCall('methode', Array) #1 {main}
Est ce que quelqu'un voit mon erreur ?
Altecad