05/26/15

Akses/Membaca isi Field pada webService PDDIKTI

Perhatikan script berikut:

<?php
require 'nusoap/nusoap.php';
require 'nusoap/class.wsdlcache.php';

$wsdl = 'localhost:8082/ws/live.php?wsdl';
$client = new nusoap_client($wsdl,true);
$proxy = $client->getProxy();

$username ='username PT';
$password ='password PT';

$result = $proxy->GetToken($username,$password);

$table = "mahasiswa";  //table
$filter="nm_pd='CAHYO'"; //filter
$limit="";
$order="id_pd"; //order by
$offset="";
$isi = $proxy->GetRecordset($result,$table,$filter,$order,$limit,$offset);

for ($x = 0; $x < 1; $x++)
{
    echo  $isi['result'][$x]['nm_pd'] ;
}

?>

echo  $isi['result'][$x]['nm_pd'] ;
adalah menampilkan isi dari field nm_pd






Postingan Lebih Baru Postingan Lama