$client->__setSoapHeaders($header); $request = new stdClass(); // $request->SecurityInfo = new stdClass(); // $request->SecurityInfo->UserName = '******'; // $request->SecurityInfo->Password = '******'; $request->patient = new stdClass(); $request->patient->Pid = 3; $request->patient->PatientAccount = 'A-000000000000021-00'; $request->patient->FirstName = 'RAMOS'; $request->patient->MiddleName = ''; $request->patient->LastName = 'JESSICA RAMOS'; $request->patient->Sex = 'F'; $request->patient->DateOfBirth = '1989-08-01'; // $request->charge->Units = 1; $auth = (object) $auth; $response = $client->Update($request); var_dump($response); //*************************************************// //*************************************************// //*************************************************// // $client = new SoapClient("http://192.168.1.106/TraNextGenWebService/Patients.asmx?WSDL"); // // $auth = array( // 'UserName'=>'SecretUser', // 'Password'=>'SecretPassword' // ); // $header = new SoapHeader('http://tranextgen.com/','AuthHeader', $auth, false); // $client->__setSoapHeaders($header); // // $params = new stdClass(); // $patient = new stdClass();