Membaca WebServices XML WSDL ASP.NET menggunakan PHP

<?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”;
}
?>

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

Comments links could be nofollow free.