Buatlah file live.php pada server. Bisa di localhost:8082 maupun di htdocs. <?php require_once('../lib/nusoap.php'); $ns = "http://localhost/ws/live.php"; //$ns = "http://localhost:8082/ws/live.php"; $server = new soap_server; $server->configureWSDL('WSPDDIKTI', $ns); $server->wsdl->schemaTargetNamespace = $ns; if(!isset($HTTP_RAW_POST_DATA)){ $HTTP_RAW_POST_DATA = file_get_contents("php://input"); } //function_search_data function GetToken ($username,$password){ $conn = mysqli_connect("localhost","root","","users"); $query = $conn->query("SELECT token FROM user_token WHERE username ='$username' AND password = '$password'"); while($row = mysqli_fetch_assoc($query)) { return json_encode($row); } } //registrasi fungsi ke server $server->register(" GetToken "...