__soapCall("GetOfficeByOfficeIDxml", array(array("OfficeID"=>$officeId))); $resObj = simplexml_load_string($response->GetOfficeByOfficeIDxmlResult); $office = $resObj->Table; $officeUrl = $office->WebSite; if (empty($officeUrl)) header("Location: http://www.snelling.com"); //header("HTTP/1.1 301 Moved Permanently"); else header("Location: ".$officeUrl); exit(); } catch (Exception $e) { //DEVELOPTMENT /* echo ("

Error creating soap client (WSDL issue).

"); echo ("

"); var_dump($e); echo ("

"); */ //PRODUCTION header("Location: http://www.snelling.com"); exit(); } ?>