Bonjour,

Tout est dans le titre...
Lorsque j'essaye d'utiliser mon service web écrit en c# je reçois cet erreur :
SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://localhost/ws/MyFirstWebService.asmx?wsdl' : failed to load external entity "http://localhost/ws/MyFirstWebService.asmx?wsdl" in E:\PROGRAM FILES\EasyPHP-5.3.6.0\www\index.php:14 Stack trace: #0 E:\PROGRAM FILES\EasyPHP-5.3.6.0\www\index.php(14): SoapClient->SoapClient('http://localhos...') #1 {main}
Je précise que mon service web fonctionne et que je tombe bien sur le wsdl via http://localhost/ws/MyFirstWebService.asmx?wsdl

Merci pour votre aide.


Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php
try
{
 
   $client = new SoapClient('http://localhost/ws/MyFirstWebService.asmx?wsdl');
   echo $client->HelloWorld('pedro');
 
 
} catch (SoapFault $fault) {
            $error = 1;
            print($fault);
}
?>