Service web avec parametre
Bonjour les amis ,j'ai un probleme au niveau de la consommation avec du PHP d'un web service developpé en C#.Net sur l'appel d'une fonction avec parametre , sinon quand je fais appel a une fonction sans parametre ca marche nickel tout en sachant qu'on appelant la meme fonctionn qui est avec param avec un client Dot Net ca marche aussi et je ne sais pas pourquoi , voici mon bout de code :
Server C#.Net
Code:
1 2 3 4 5
|
[WebMethod]
public string HelloWorld(string x) {
return "Hello World "+x;
} |
Client PHP
Code:
1 2 3 4 5
|
$wsdl = "http://localhost:2397/ServWeb/Service.asmx?WSDL";
$clientSOAP = new SoapClient($wsdl);
$response= $clientSOAP->HelloWorld("test");
echo $response->functtestResult ; |