bonjour tout le monde,

j'ai réalisé un web service en java, et j'ai créé un client en php, avec ce code :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
ini_set('soap.wsdl_cache_enabled', 0);
 
$service=new SoapClient("http://site/services/Main?wsdl");
 
$taballservices = $service->Methode("param1", "param2");
 
print_r($taballservices);
mais quand je lance mon script j'obtiens cette erreur :

Parsing WSDL: Missing <message> with name 'ns:null'
voilà une partie du WSDL

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
xmlns:ns1="http://org.apache.axis2/xsd" 
xmlns:ns="http://site.com" 
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" 
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" 
xmlns:ax23="http://site.com/xsd" 
xmlns:ax21="http://io.java/xsd" 
xmlns:xs="http://www.w3.org/2001/XMLSchema" 
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" 
targetNamespace="http://site.com">
merci de m'aider pour trouver une solution.