1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
<?php
echo "code @ JAmal";
// première étape : désactiver le cache lors de la phase de test
ini_set("soap.wsdl_cache_enabled", "0");
?><br><?php echo "=========1=========== ";
// lier le client au fichier WSDL
$client = new SoapClient('http://localhost:8084/CalculatorWSApplication/CalculatorWS?wsdl',
array(
"trace" => 1, // enable trace to view what is happening
"exceptions" => 0, // disable exceptions
"cache_wsdl" => 0) // disable any caching on the wsdl, encase you alter the wsdl server
);
?><br><?php echo "=========2========== ";
?><br><?php
// executer la methode getHello
$outputws = $client->helloword('Royce Rolls');
// echo $outputws;
echo $outputws->return;
?><br><?php
echo "===============================";
?> |
Partager