Blame | Last modification | View Log | RSS feed
<?php/*QBPWCF, Quick Build PHP website Component base on Fedora Linux.Copyright (C) 2015~2016 Min-Jhin,ChenThis file is part of QBPWCF.QBPWCF is free software: you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation, either version 3 of the License, or(at your option) any later version.QBPWCF is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with QBPWCF. If not, see <http://www.gnu.org/licenses/>.*/#使用命名空間qbpwcfnamespace qbpwcf{#匯入外部套件include("../allInOneForSOAP.php");#提示執行的函數echo "<hr>soap::callService=>local=>app::defaultMode<p>";#/*#涵式說明:#呼叫WebService#回傳的結果#$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.#$reuslt["error"],執行不正常結束的錯訊息陣列.#$result["function"],當前執行的函式名稱.#$result["content"],呼叫完WebService所得回傳結果.#$result["info"],取得webService的要求資訊.#必填的參數:#$conf["servicePhpFile"],字串,提供服務內容的php檔案的完整絕對位置,裏面要有1個名爲 $conf["serviceClassName"] 類別$conf["servicePhpFile"]="~qbpwcf/samplePage/phplib/qbpwcf/app-soap.php";#$conf["soapMethod"],字串,要呼叫的方法$conf["soapMethod"]="defaultMode";#$conf["argv"],字串陣列,呼叫方法時所要用到的參數內容$conf["argv"]=array(array("test"));#可省略的參數:#$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"]="443";#備註:#若$conf["ssl"]設為"true"將會呼叫失敗.#目前無法用非80port呼叫主機的服務.#參考資料:#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 qbpwcf end?>