//this is the first request. OverdrachtsRequest initializes the operation //overdrachtsRequest $client = new SoapClient($wsdl, array('local_cert' => $my_cert_file1, 'passphrase' => $passphrase1) ); //var_dump($client->__getFunctions()); $param = new stdClass(); $param->overdracht = new stdClass(); $param->overdracht->bronBrin = $brin; $param->overdracht->doelBrin = '98VO'; $param->overdracht->zoeksleutel = $bsnEncrypted; $param->overdracht->overdrachtsoort = 'overstapdossier'; try { $overdrachtsResponse = $client->overdracht($param); } catch (Exception $e) { ?><BR><? echo ' ', $e->getMessage(), "\n"; } //if there is an error, display it to the user if (isset($overdrachtsResponse ->fout)) { echo $overdrachtsResponse ->fout; } //else send documentRequest else