} } catch (ETWSException $e) { echo "***Caught exception*** \n" . "Error Code \t: " . $e->getErrorCode() . "\n" . "Error Message \t: " . $e->getErrorMessage() . "\n"; if (DEBUG_MODE) { echo $e->getTraceAsString() . "\n"; } exit; } catch (Exception $e) { echo "***Caught exception*** \n" . "Error Code \t: " . $e->getCode() . "\n" . "Error Message \t: " . $e->getMessage() . "\n"; if (DEBUG_MODE) { echo $e->getTraceAsString() . "\n"; } echo "Exiting...\n"; exit; } $mkt_responce_obj = etHttpUtils::GetResponseObject($out); print_r($mkt_responce_obj); } //--------------------------------------------------------- /** * Get command line input * @param */ function get_input($str) { echo "\nPlease enter * {$str} * : "; return trim(fgets(STDIN)); } function show_menu() { echo "\n\nChoose from following options..\n\n";
} catch (ETWSException $e) { echo "***Caught ETWSException*** \n" . "Error Code \t: " . $e->getErrorCode() . "\n" . "Error Message \t: " . $e->getErrorMessage() . "\n"; if (DEBUG_MODE) { echo $e->getTraceAsString() . "\n"; } exit; } catch (Exception $e) { echo "***Caught Exception*** \n" . "Error Code \t: " . $e->getCode() . "\n" . "Error Message \t: " . $e->getMessage() . "\n"; if (DEBUG_MODE) { echo $e->getTraceAsString() . "\n"; } echo "Exiting...\n"; exit; } $endtime = ETWSCommon::get_time(); $ac_responce_obj = etHttpUtils::GetResponseObject($ac); print_r($ac_responce_obj); echo "\n totel time for optoin {$choice} : " . ETWSCommon::get_time_diff($starttime, $endtime); } /** * Get command line input * @param string $str */ function get_cmdline_input($str) { echo "\nPlease enter * {$str} * : "; return trim(fgets(STDIN)); } /** * * @method show_menu