<?php $opt = array('location' => 'http://localhost/soap-server.php', 'uri' => 'http://localhost/'); $api = new SoapClient(NULL, $opt); echo $api->helloworld(); echo "<br>"; echo $api->addition(2, 3); echo "<br>"; echo $api->getData();
<?php $opt = array('location' => 'http://localhost/SOAP-server.php', 'uri' => 'http://localhost'); $api = new SoapClient(NULL, $opt); echo "----Fungsi HelloWorld----"; echo "<br>"; echo $api->helloworld(); echo "<br><br>"; echo "----Fungsi Addition----"; echo "<br>"; echo $api->addition(5, 5); echo "<br><br>"; echo "----Fungsi GetData----"; echo "<br>"; echo $api->getData();
<?php $opt = array('location' => 'http://localhost/SOAP-server.php', 'uri' => 'http://localhost/'); $api = new SoapClient(NULL, $opt); $a = 9; $b = 7; echo $api->helloworld(); echo "<br>"; echo $api->addition($a, $b); echo "<br>"; echo $api->getData(); ?>
<?php $opt = array('location' => 'http://localhost/soap-server.php', 'uri' => 'http://localhost/'); $api = new SoapClient(NULL, $opt); echo $api->helloworld(); echo "<br>"; echo $api->addition(4, 20); echo "<br>"; echo $api->getData();
<?php // Name/NIM : Nicholas Posma Nasution/18213008 - Indra Nicolosi Waskita/18213041 // Date : 3 November 2015 // Source : http://www.w3schools.com/php/php_mysql_select.asp $opt = array('location' => 'http://localhost/progif/soap-server.php', 'uri' => 'http://localhost/progif'); $api = new SoapClient(Null, $opt); echo $api->helloworld(); echo "<br>"; echo "5 + 7 = "; echo $api->addition(5, 7); echo "<br>"; echo $api->printdata();
<?php # Name/NIM : Jenika Sutojo/18213003 - Andra Wahyu Purnomo/18213004 # Day, Date : Tuesday, 03 November 2015 # File : soap-client.php $opt = array('location' => 'http://localhost/soap-server.php', 'uri' => 'http://localhost/'); $api = new SoapClient(Null, $opt); echo $api->helloworld(); echo '<br />'; echo '4 + 2 = '; echo $api->addition(2, 4); echo '<br />'; echo $api->getData();
<?php $opt = array('location' => 'http://localhost/SOAP-server.php', 'uri' => 'http://localhost/'); $api = new SoapClient(NULL, $opt); echo $api->helloworld(); echo "<br>"; echo $api->addition(4, 7); echo "<br>"; echo $api->getData();
<?php $opt = array('location' => 'http://localhost/SOAP-Server.php', 'uri' => 'http://localhost/'); $api = new SoapClient(NULL, $opt); echo $api->helloworld(); echo $api->addition(12, 10); echo "<br>"; echo "<h1>Data yang diambil dari tabel siswa pada database perkuliahan</h1>"; echo $api->getData(); ?>