$state = new State(); $state->setAbbrev('CA'); $requestOrder->setLicense('A1000004'); $requestOrder->setFirstName('CHRIS'); $requestOrder->setLastName('SMITH'); $requestOrder->setDOB($dob); $requestOrder->setMisc('SomeRandomInternalTrackingID'); $requestOrder->setState($state); $requestOrder->setAuxMisc('SomeOtherRandomInternalTrackingID'); $requestOrder->setAccount($CONFIG_ACCOUNT); $requestOrder->setHandling('OL'); $requestOrder->setProductID('DL'); $requestOrder->setSubtype('3Y'); $requestOrder->setPurpose('AA'); //Create the Request object, then add the Order to it. $request = new Request(); //If you call this method, you will need to ensure a //$newPassword = $request->resetPassword(); $request->setHost($CONFIG_HOST); $request->setAccount($CONFIG_ACCOUNT); $request->setUserID($CONFIG_USERID); $request->setPassword($CONFIG_PASSWORD); $request->setReportType($CONFIG_REPORTTYPE); $request->setADRIPAddress($CONFIG_ADRIPADDRESS); $request->setADRPort($CONFIG_ADRPORT); //An optional report $request->setAdditionalReportType(\Adr\Request\AdditionalReportType::HTML); $request->addOrder($requestOrder); //Let's check out how the Request XML looks print 'REQUEST XML BEING SENT TO ADR:' . PHP_EOL . $request->getXML(); //Our Request is ready to send to ADR, but we're not actually doing it as I assume you do not have an account.
$state = new State(); $state->setAbbrev('WI'); $requestOrder->setLicense('N50073371234-01'); $requestOrder->setFirstName('Test'); $requestOrder->setLastName('TestLastName'); $requestOrder->setDOB($dob); $requestOrder->setMisc('SomeRandomInternalTrackingID'); $requestOrder->setState($state); $requestOrder->setAuxMisc('SomeOtherRandomInternalTrackingID'); $requestOrder->setAccount('XXXX'); $requestOrder->setHandling('OL'); $requestOrder->setProductID('DL'); $requestOrder->setSubtype('3Y'); $requestOrder->setPurpose('AA'); //Create the Request object, then add the Order to it. $request = new Request(); //$request->resetPassword(); $request->setHost('Online'); $request->setAccount('XXXXX'); $request->setUserID('01'); $request->setPassword('XXXXXXXXX'); $request->setReportType('XML'); $request->setADRIPAddress('333.333.333.333'); $request->setADRPort('12345'); $request->addOrder($requestOrder); //Let's check out how the Request XML looks //print 'REQUEST XML BEING SENT TO ADR:' . PHP_EOL . $request->getXML(); //Our Request is ready to send to ADR, but we're not actually doing it as I assume you do not have an account. try { $response = $request->send(); } catch (Exception $e) {