Blame | Last modification | View Log | RSS feed
<?php#指派命名空間namespace qbpwcf{#匯入專屬SOAP的套件include("../allInOneForSOAP.php");#提示執行的函數echo "<hr>soap::callService=>local=>hive::query - testCase 1 <p>";/*#涵式說明:#呼叫WebService#回傳的結果#$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.#$reuslt["error"],執行不正常結束的錯訊息陣列.#$result["function"],當前執行的函式名稱.#$result["content"],呼叫完WebService所得回傳結果.#必填的參數:#$conf["servicePhpFile"],字串,提供服務內容的php檔案的完整絕對位置,裏面要有1個名爲 $conf["serviceClassName"] 類別$conf["servicePhpFile"]="~qbpwcf/samplePage/phplib/qbpwcf/hive-soap.php";#$conf["soapMethod"],字串,要呼叫的方法$conf["soapMethod"]="query";#$conf["argv"],字串陣列,呼叫方法時所要用到的參數內容$sendedData["sql"]="show databases;";$sendedData["beeline"]="echo";$sendedData["userName"]="un";$sendedData["userPass"]="up";#$conf["argv"]=array($sendedData);$conf["argv"]=array($sendedData);#呼叫方法時所要用到的參數內容#可省略的參數:#$conf["ssl"],字串,是否使用ssl,"true"代表要使用;"false"代表不使用,預設爲"false"#$conf["ssl"]="false";#$conf["serverIp"],字串,服務提供的主機ip位置,預設爲本機"127.0.0.1"#$conf["serverIp"]="127.0.0.1";#$conf["port"],port通常不用ssl時為80,用ssl時為443.#$conf["port"]="8080";#參考資料:#http://www.cnblogs.com/chance1/archive/2009/04/08/1431949.html#http://www.php.net/manual/en/soapclient.soapcall.phpvar_dump(soap::callService($conf));unset($conf);*/#提示執行的函數echo "<hr>soap::callService=>local=>hive::query - testCase 2 <p>";/*#涵式說明:#呼叫WebService#回傳的結果#$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.#$reuslt["error"],執行不正常結束的錯訊息陣列.#$result["function"],當前執行的函式名稱.#$result["content"],呼叫完WebService所得回傳結果.#必填的參數:#$conf["servicePhpFile"],字串,提供服務內容的php檔案的完整絕對位置,裏面要有1個名爲 $conf["serviceClassName"] 類別$conf["servicePhpFile"]="qbpwcf-alpha-2016-03-17/qbpwcf/hive-soap.php";#$conf["soapMethod"],字串,要呼叫的方法$conf["soapMethod"]="query";#$conf["argv"],字串陣列,呼叫方法時所要用到的參數內容$sendedData["sql"]="show databases;";$sendedData["beeline"]="/home/liveuser/hadoop-2.7.2/bin/beeline";#$conf["argv"]=array($sendedData);$conf["argv"]=array($sendedData);#呼叫方法時所要用到的參數內容#可省略的參數:#$conf["ssl"],字串,是否使用ssl,"true"代表要使用;"false"代表不使用,預設爲"false"#$conf["ssl"]="false";#$conf["serverIp"],字串,服務提供的主機ip位置,預設爲本機"127.0.0.1"$conf["serverIp"]="192.168.53.2";#$conf["port"],port通常不用ssl時為80,用ssl時為443.#$conf["port"]="8080";#參考資料:#http://www.cnblogs.com/chance1/archive/2009/04/08/1431949.html#http://www.php.net/manual/en/soapclient.soapcall.phpvar_dump(soap::callService($conf));unset($conf);*/#提示執行的函數echo "<hr>soap::callService=>local=>hive::query - testCase 3 <p>";/*#涵式說明:#呼叫WebService#回傳的結果#$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.#$reuslt["error"],執行不正常結束的錯訊息陣列.#$result["function"],當前執行的函式名稱.#$result["content"],呼叫完WebService所得回傳結果.#必填的參數:#$conf["servicePhpFile"],字串,提供服務內容的php檔案的完整絕對位置,裏面要有1個名爲 $conf["serviceClassName"] 類別$conf["servicePhpFile"]="qbpwcf-alpha-2016-03-17/qbpwcf/hive-soap.php";#$conf["soapMethod"],字串,要呼叫的方法$conf["soapMethod"]="query";#$conf["argv"],字串陣列,呼叫方法時所要用到的參數內容$sendedData["sql"]="show databases; use test; show tables; INSERT INTO TABLE pokes VALUES (1,'a'),(2,'b'); SELECT * FROM pokes;";$sendedData["beeline"]="/home/liveuser/hadoop-2.7.2/bin/beeline";#$conf["argv"]=array($sendedData);$conf["argv"]=array($sendedData);#呼叫方法時所要用到的參數內容#可省略的參數:#$conf["ssl"],字串,是否使用ssl,"true"代表要使用;"false"代表不使用,預設爲"false"#$conf["ssl"]="false";#$conf["serverIp"],字串,服務提供的主機ip位置,預設爲本機"127.0.0.1"$conf["serverIp"]="192.168.53.2";#$conf["port"],port通常不用ssl時為80,用ssl時為443.#$conf["port"]="8080";#參考資料:#http://www.cnblogs.com/chance1/archive/2009/04/08/1431949.html#http://www.php.net/manual/en/soapclient.soapcall.phpvar_dump(soap::callService($conf));unset($conf);*/#提示執行的函數echo "<hr>soap::callService=>local=>hive::getDbList - testCase 1 <p>";/*#涵式說明:#呼叫WebService#回傳的結果#$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.#$reuslt["error"],執行不正常結束的錯訊息陣列.#$result["function"],當前執行的函式名稱.#$result["content"],呼叫完WebService所得回傳結果.#必填的參數:#$conf["servicePhpFile"],字串,提供服務內容的php檔案的完整絕對位置,裏面要有1個名爲 $conf["serviceClassName"] 類別$conf["servicePhpFile"]="qbpwcf-alpha-2016-03-17/qbpwcf/hive-soap.php";#$conf["soapMethod"],字串,要呼叫的方法$conf["soapMethod"]="getDbList";#$conf["argv"],字串陣列,呼叫方法時所要用到的參數內容$sendedData["beeline"]="/home/liveuser/hadoop-2.7.2/bin/beeline";#$conf["argv"]=array($sendedData);$conf["argv"]=array($sendedData);#呼叫方法時所要用到的參數內容#可省略的參數:#$conf["ssl"],字串,是否使用ssl,"true"代表要使用;"false"代表不使用,預設爲"false"#$conf["ssl"]="false";#$conf["serverIp"],字串,服務提供的主機ip位置,預設爲本機"127.0.0.1"$conf["serverIp"]="192.168.53.2";#$conf["port"],port通常不用ssl時為80,用ssl時為443.#$conf["port"]="8080";#參考資料:#http://www.cnblogs.com/chance1/archive/2009/04/08/1431949.html#http://www.php.net/manual/en/soapclient.soapcall.phpvar_dump(soap::callService($conf));unset($conf);*/#提示執行的函數echo "<hr>soap::callService=>local=>hive::getDbList - testCase 2 <p>";/*#涵式說明:#呼叫WebService#回傳的結果#$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.#$reuslt["error"],執行不正常結束的錯訊息陣列.#$result["function"],當前執行的函式名稱.#$result["content"],呼叫完WebService所得回傳結果.#必填的參數:#$conf["servicePhpFile"],字串,提供服務內容的php檔案的完整絕對位置,裏面要有1個名爲 $conf["serviceClassName"] 類別$conf["servicePhpFile"]="hive.php";#$conf["soapMethod"],字串,要呼叫的方法$conf["soapMethod"]="getDbList";#$conf["argv"],字串陣列,呼叫方法時所要用到的參數內容$sendedData=array();#$conf["argv"]=array($sendedData);$conf["argv"]=array($sendedData);#呼叫方法時所要用到的參數內容#可省略的參數:#$conf["ssl"],字串,是否使用ssl,"true"代表要使用;"false"代表不使用,預設爲"false"#$conf["ssl"]="false";#$conf["serverIp"],字串,服務提供的主機ip位置,預設爲本機"127.0.0.1"$conf["serverIp"]="192.168.53.2";#$conf["port"],port通常不用ssl時為80,用ssl時為443.#$conf["port"]="8080";#參考資料:#http://www.cnblogs.com/chance1/archive/2009/04/08/1431949.html#http://www.php.net/manual/en/soapclient.soapcall.phpvar_dump(soap::callService($conf));unset($conf);*/#提示執行的函數echo "<hr>soap::callService=>local=>hive::getDbList - testCase 3 <p>";/*#涵式說明:#呼叫WebService#回傳的結果#$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.#$reuslt["error"],執行不正常結束的錯訊息陣列.#$result["function"],當前執行的函式名稱.#$result["content"],呼叫完WebService所得回傳結果.#必填的參數:#$conf["servicePhpFile"],字串,提供服務內容的php檔案的完整絕對位置,裏面要有1個名爲 $conf["serviceClassName"] 類別$conf["servicePhpFile"]="ci/index.php/hive";#$conf["soapMethod"],字串,要呼叫的方法$conf["soapMethod"]="getDbList";#$conf["argv"],字串陣列,呼叫方法時所要用到的參數內容$sendedData=array();#$conf["argv"]=array($sendedData);$conf["argv"]=array($sendedData);#呼叫方法時所要用到的參數內容#可省略的參數:#$conf["ssl"],字串,是否使用ssl,"true"代表要使用;"false"代表不使用,預設爲"false"#$conf["ssl"]="false";#$conf["serverIp"],字串,服務提供的主機ip位置,預設爲本機"127.0.0.1"$conf["serverIp"]="192.168.53.2";#$conf["port"],port通常不用ssl時為80,用ssl時為443.#$conf["port"]="8080";#參考資料:#http://www.cnblogs.com/chance1/archive/2009/04/08/1431949.html#http://www.php.net/manual/en/soapclient.soapcall.phpvar_dump(soap::callService($conf));unset($conf);*/#提示執行的函數echo "<hr>soap::callService=>local=>hive::getDtList - testCase 1 <p>";/*#涵式說明:#呼叫WebService#回傳的結果#$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.#$reuslt["error"],執行不正常結束的錯訊息陣列.#$result["function"],當前執行的函式名稱.#$result["content"],呼叫完WebService所得回傳結果.#必填的參數:#$conf["servicePhpFile"],字串,提供服務內容的php檔案的完整絕對位置,裏面要有1個名爲 $conf["serviceClassName"] 類別$conf["servicePhpFile"]="qbpwcf-alpha-2016-03-17/qbpwcf/hive-soap.php";#$conf["soapMethod"],字串,要呼叫的方法$conf["soapMethod"]="getDtList";#$conf["argv"],字串陣列,呼叫方法時所要用到的參數內容$sendedData["beeline"]="/home/liveuser/hadoop-2.7.2/bin/beeline";$sendedData["dbName"]="test";$conf["argv"]=array($sendedData);#呼叫方法時所要用到的參數內容#可省略的參數:#$conf["ssl"],字串,是否使用ssl,"true"代表要使用;"false"代表不使用,預設爲"false"#$conf["ssl"]="false";#$conf["serverIp"],字串,服務提供的主機ip位置,預設爲本機"127.0.0.1"$conf["serverIp"]="192.168.53.2";#$conf["port"],port通常不用ssl時為80,用ssl時為443.#$conf["port"]="8080";#參考資料:#http://www.cnblogs.com/chance1/archive/2009/04/08/1431949.html#http://www.php.net/manual/en/soapclient.soapcall.phpvar_dump(soap::callService($conf));unset($conf);*/#提示執行的函數echo "<hr>soap::callService=>local=>hive::getDtStruc - testCase 1 <p>";/*#涵式說明:#呼叫WebService#回傳的結果#$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.#$reuslt["error"],執行不正常結束的錯訊息陣列.#$result["function"],當前執行的函式名稱.#$result["content"],呼叫完WebService所得回傳結果.#必填的參數:#$conf["servicePhpFile"],字串,提供服務內容的php檔案的完整絕對位置,裏面要有1個名爲 $conf["serviceClassName"] 類別$conf["servicePhpFile"]="qbpwcf-alpha-2016-03-17/qbpwcf/hive-soap.php";#$conf["soapMethod"],字串,要呼叫的方法$conf["soapMethod"]="getDtStruc";#$conf["argv"],字串陣列,呼叫方法時所要用到的參數內容$sendedData["beeline"]="/home/liveuser/hadoop-2.7.2/bin/beeline";$sendedData["dbName"]="test";$sendedData["dtName"]="pokes";$conf["argv"]=array($sendedData);#呼叫方法時所要用到的參數內容#可省略的參數:#$conf["ssl"],字串,是否使用ssl,"true"代表要使用;"false"代表不使用,預設爲"false"#$conf["ssl"]="false";#$conf["serverIp"],字串,服務提供的主機ip位置,預設爲本機"127.0.0.1"$conf["serverIp"]="192.168.53.2";#$conf["port"],port通常不用ssl時為80,用ssl時為443.#$conf["port"]="8080";#參考資料:#http://www.cnblogs.com/chance1/archive/2009/04/08/1431949.html#http://www.php.net/manual/en/soapclient.soapcall.phpvar_dump(soap::callService($conf));unset($conf);*/#提示執行的函數echo "<hr>soap::callService=>local=>hive::getDtData - testCase 1 <p>";/*#涵式說明:#呼叫WebService#回傳的結果#$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.#$reuslt["error"],執行不正常結束的錯訊息陣列.#$result["function"],當前執行的函式名稱.#$result["content"],呼叫完WebService所得回傳結果.#必填的參數:#$conf["servicePhpFile"],字串,提供服務內容的php檔案的完整絕對位置,裏面要有1個名爲 $conf["serviceClassName"] 類別$conf["servicePhpFile"]="qbpwcf-alpha-2016-03-17/qbpwcf/hive-soap.php";#$conf["soapMethod"],字串,要呼叫的方法$conf["soapMethod"]="getDtData";#$conf["argv"],字串陣列,呼叫方法時所要用到的參數內容$sendedData["beeline"]="/home/liveuser/hadoop-2.7.2/bin/beeline";$sendedData["dbName"]="test";$sendedData["dtName"]="pokes";$conf["argv"]=array($sendedData);#呼叫方法時所要用到的參數內容#可省略的參數:#$conf["ssl"],字串,是否使用ssl,"true"代表要使用;"false"代表不使用,預設爲"false"#$conf["ssl"]="false";#$conf["serverIp"],字串,服務提供的主機ip位置,預設爲本機"127.0.0.1"$conf["serverIp"]="192.168.53.2";#$conf["port"],port通常不用ssl時為80,用ssl時為443.#$conf["port"]="8080";#參考資料:#http://www.cnblogs.com/chance1/archive/2009/04/08/1431949.html#http://www.php.net/manual/en/soapclient.soapcall.phpvar_dump(soap::callService($conf));unset($conf);*/}#namespace includeV5 end?>