Bonjour,

Je n'arrive pas à interroger un web service en php.

J'ai d'abord eux des problèmes de sécurité qui semble résolu avec cette classe-> https://gist.github.com/silasrm/a57a...4b712192625a3b

Maintenant depuis hier, je reçois ce message d'erreur

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
 
Fatal error: Uncaught SoapFault exception: [env:Server] Unknown exception, internal system processing error. in /var/www/html/mutas_dev/Web-services/WSSoapClient.php:63 Stack trace: #0 /var/www/html/mutas_dev/Web-services/WSSoapClient.php(63): SoapClient->__soapCall('getUserData', Array) #1 /var/www/html/mutas_dev/Web-services/cm.php(20): WSSoapClient->__call('getUserData', Array) #2 {main} thrown in /var/www/html/mutas_dev/Web-services/WSSoapClient.php on line 63
WSSoapClient.php:63
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
 
public function __call($function_name, $arguments)
	{
        //print_r($this->__getFunctions());
        $this->__setSoapHeaders($this->generateWSSecurityHeader());
		return parent::__soapCall($function_name, $arguments);
	}
cm.php(20)
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
 
 
ini_set('soap.wsdl_cache_enabled', 0);
require_once('WSSoapClient.php');
 
$user = "********";
$password = "****************";
$wsdl = "https://kazou-ws-pp.cm.be/cmwebservice/CmwebWebService?WSDL";
$method = "getUserData";
 
$user = '2909373';
$session = '20120708';
$nrn = '72112034760';
 
$client = new WSSoapClient($wsdl, array('cache_wsdl' => WSDL_CACHE_NONE, 'trace' => 1, 'exception' => 0));
$client->__setUsernameToken($user,$password, 'PasswordText');
 
$param = array ('nrn' => $nrn, 'user' => $user, 'session'=> $session); 
 
$client->__call($method, $param);
//print_r($client);
$client->__getLastRequest();
Merci d'avance pour votre aide

EDIT: Quand je fais un echo du xml tous les noeuds sont en minuscule, le problème viendrai de là ?