Rev 3 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<?php/*QBPWCF, Quick Build PHP website Component base on Fedora Linux.Copyright (C) 2014~2025 MIN ZHI, 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/>.*//*#說明:#record類別的soap服務*/#使用命名空間qbpwcfnamespace qbpwcf;#匯入外部套件include("allInOneForSOAP.php");#涵式說明:#建立webService#回傳的結果#$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.#$reuslt["error"],執行不正常結束的錯訊息陣列.#$result["function"],當前執行的函式名稱.#$result["listFunctions"],為目前定義可以使用的類別與涵式,其他的結果為錯誤尋息。#必填的參數:#$conf["servicePhpFile"],字串,提供服務內容的php檔案的完整絕對位置,裏面要有1個名爲 $conf["serviceClassName"] 類別$conf["servicePhpFile"]="record.php";#$conf["serviceClassName"],字串.提供服務的類別名稱,需要在$conf["servicePhpFile"]檔案裏面有的類別,若有使用命名空間,請加上。ex: "yourNamespace\className"$conf["serviceClassName"]="qbpwcf\\record";#參考資料:#http://www.cnblogs.com/chance1/archive/2009/04/08/1431949.html#http://www.php.net/manual/en/function.is-soap-fault.php#http://www.php.net/manual/en/soapserver.soapserver.php#http://www.php.net/manual/en/soapserver.setclass.php#http://www.php.net/manual/en/soapserver.handle.php$serviceCreateResult=soap::createService($conf);unset($conf);#debug#var_dump($serviceCreateResult);?>