<?php
require_once ‘nusoap/nusoap.php’;
//ini_set(“soap.wsdl_cache_enabled”, “1”);
$sc = new soapclient(‘http://localhost/webservice/Service.asmx?WSDL’, true);
if (false !== $error = $sc->getError()) {
die($error);
}
$result=$sc->call(‘mhetod_request’,
array(
‘elemen1’ => ‘nilai’
));
if($result[‘method_request’][‘element1’]!=”) {
echo “<pre>”;
print_r($result[‘method_request’]);
echo “</pre>”;
} else {
echo “Maaf data tidak ditemukan”;
}
?>