steps:
1. download nusoap library from internet.
2. pass parameter list in your $client->call and enjoy.
geterror();if ($err) { // display the error echo 'constructor error: ' . $err . '
'; // at this point, you know the call that follows will fail}////////////////////////////////////////////////////////////////////////////////////////////////////////////////// update_location method parameter$param = array( 'device_number' => '9910948357', 'latitude' => '40.727757', 'longitude' => '-73.984366', 'battery_status' => '30' );// user_action method parameter$param2 = array( 'device_number' => '27ab2026da5213ebd6c95e5fbe50965bdfaddf4b', 'latitude' => '40.727757', 'longitude' => '-73.984366', 'user_action' => 'meeting_test' );// sos method parameter$param3 = array( 'device_number' => '9910948357', 'latitude' => '40.727757', 'longitude' => '-73.984366', );//$result = $client->call('update_location', $param);//$result = $client->call('user_action', $param2);//$result = $client->call('sos', $param3);$result = $client->call('user_entity_status', array('device_number' => '27ab2026da5213ebd6c95e5fbe50965bdfaddf4b'));////////////////////////////////////////////////////////////////////////////////////////////////////////////////// check for a faultif ($client->fault) { echo 'fault: '; print_r($result); echo '
';} else { // check for errors $err = $client->geterror(); if ($err) { // display the error echo 'error: ' . $err . '
'; } else { // display the result echo ; print_r($result); echo
; }}echo 'request';echo '' . htmlspecialchars($client->request, ent_quotes) . '
';echo 'response';echo '' . htmlspecialchars($client->response, ent_quotes) . '
';/*// display the debug messagesecho 'debug';echo '' . htmlspecialchars($client->debug_str, ent_quotes) . '
';*/?>
希望本文所述对大家的php程序设计有所帮助。