-
Notifications
You must be signed in to change notification settings - Fork 9
/
clientside.php
38 lines (33 loc) · 938 Bytes
/
clientside.php
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
30
31
32
33
34
35
36
37
38
/*
Holla: DeetechApps [at] Gmail dot Com
Twitter @Devdeekey
*/
<?php
require_once('lib/nusoap.php');
$choice=$_GET['choice'];
if($choice==1)
{
$param=array('ID'=>"26718443",'Name' =>"Josephat Mwathi",'Phone_Number' =>"0724589264");
$client=new nusoap_client('http://127.0.0.1/bus/serverside.php?wsdl','wsdl');
$response= $client->call('registerCustomer',$param);
}
if($choice==2)
{
$client=new nusoap_client('http://127.0.0.1/bus/serverside.php?wsdl','wsdl');
$response= $client->call('viewtrips');
}
if($choice==3)
{
$param=array('cust_Id' =>"3",'trip_Id' =>"8");
$client=new nusoap_client('http://127.0.0.1/bus/serverside.php?wsdl','wsdl');
$response= $client->call('booktrip',$param);
}
if($choice==4)
{
$param=array('trip_Id' =>"2",'cust_Id'=>"2");
$client=new nusoap_client('http://127.0.0.1/bus/serverside.php?wsdl','wsdl');
$response= $client->call('changedestination',$param);
}
echo"Result:<br/>";
print_r($response);
?>