<?php $client = new SoapClient("https://addressinfo.northern911.com/soap/Service.svc?wsdl", array("classmap" => array("Customer" => "MyCustomer"))); $vendorCode = '955'; $soap_passcode = 'Djd7adfSD2'; $gmdate = gmdate('Ymd'); //YYYYMMDD $hash = md5($vendorCode . $soap_passcode . $gmdate); $GetDumpURLParameters = array("vendorCode" => "955", "phoneNumber" => "7055216777", "hash" => $hash); $GetDumpURLResult = $client->GetVendorDumpURL($GetDumpURLParameters)->GetVendorDumpURLResult; //Transaction not accepted. Therefore display error message(s). if (!$GetDumpURLResult->Accepted) { echo 'Get Dump URL not accepted.' . '<br/><br/>'; $errors = $GetDumpURLResult->Errors->Error; $errorCount = count($errors); //If 1 error message. Display it. if ($errorCount == 1) { echo 'Error-Code: ' . $errors->ErrorCode . '<br/>'; echo 'Error-Msg: ' . $errors->ErrorMessage . '<br/>'; } //If multiple error messages display them all. else { foreach ($errors as &$err) { echo 'Error-Code: ' . $err->ErrorCode . '<br/>'; echo 'Error-Msg: ' . $err->ErrorMessage . '<br/><br/>'; } } } else { echo 'Get Dump URL accepted.<br/>'; echo 'URL: ' . $GetDumpURLResult->VendorDumpURL . '<br/>'; } class MyCustomer { public $VENDOR_CODE = null; public $PHONE_NUMBER = null; public $LAST_NAME = null; public $FIRST_NAME = null; public $STREET_NUMBER = null; public $SUITE_APT = null; public $STREET_NAME = null; public $CITY = null; public $PROVINCE_STATE = null; public $POSTAL_CODE_ZIP = null; public $OTHER_ADDRESS_INFO = null; public $ENHANCED_CAPABLE = null; public $LAST_DATETIME_MODIFIED = null; public $LAST_DATETIME_MODIFIED_UNIXTIME = null; } ?>