當前位置: 首頁>>代碼示例>>PHP>>正文


PHP SoapServer::setclass方法代碼示例

本文整理匯總了PHP中SoapServer::setclass方法的典型用法代碼示例。如果您正苦於以下問題:PHP SoapServer::setclass方法的具體用法?PHP SoapServer::setclass怎麽用?PHP SoapServer::setclass使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在SoapServer的用法示例。


在下文中一共展示了SoapServer::setclass方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: processSoap

 /**
  * Intercept the soapServer method call in order to handle the call thrue the process method
  * Return php variables, the soap server will transform it in a soap response
  */
 public function processSoap()
 {
     $this->wsdl = new jWSDL($this->request->params['module'], $this->request->params['action']);
     $this->soapServer = $this->getSoapServer($this->wsdl);
     $this->soapServer->setclass('jSoapHandler', $this);
     $this->soapServer->handle($this->request->soapMsg);
 }
開發者ID:CREASIG,項目名稱:lizmap-web-client,代碼行數:11,代碼來源:jSoapCoordinator.class.php

示例2: processDefault

 /**
  * Traitement par défaut
  */
 public function processDefault()
 {
     // On charge la classe exportée
     Copix::RequireOnce($this->_exportClassFilename);
     // Définition du serveur Soap
     if (isset($this->_wsname)) {
         $server = new SoapServer(_url('wsserver|default|wsdl', array('wsname' => $this->_wsname)));
     } else {
         $server = new SoapServer(_url('wsserver|default|wsdl'));
     }
     // Assignation de la classe exportée au serveur
     $server->setclass($this->_exportClass);
     // Traitement des appels
     if ($_SERVER['REQUEST_METHOD'] == 'POST') {
         $server->handle();
         return _arNone();
     } else {
         $res = '<strong>' . _i18n('wsserver.handle.title') . '</strong>';
         $res .= '<ul>';
         foreach ($server->getFunctions() as $func) {
             $res .= '<li>' . $func . '</li>';
         }
         $res .= '</ul>';
         $res;
     }
     $tpl = new CopixTpl();
     $tpl->assign('MAIN', $res);
     return new CopixActionReturn(CopixActionReturn::DISPLAY, $tpl);
 }
開發者ID:JVS-IS,項目名稱:ICONITO-EcoleNumerique,代碼行數:32,代碼來源:default.actiongroup.php

示例3: Copyright

@package   Webservices
@author    Nelly Mahu-Lasson
@copyright Copyright (c) 2009-2014 Webservices plugin team
@license   AGPL License 3.0 or (at your option) any later version
           http://www.gnu.org/licenses/agpl-3.0-standalone.html
@link      https://forge.indepnet.net/projects/webservices
@link      http://www.glpi-project.org/
@since     2009
--------------------------------------------------------------------------
*/
if (!extension_loaded("soap")) {
    header("HTTP/1.0 500 Extension soap not loaded");
    die("Extension soap not loaded");
}
ini_set("soap.wsdl_cache_enabled", "0");
define('DO_NOT_CHECK_HTTP_REFERER', 1);
include "../../inc/includes.php";
Plugin::load('webservices', true);
Plugin::doHook("webservices");
plugin_webservices_registerMethods();
error_reporting(E_ALL);
try {
    $server = new SoapServer(null, array('uri' => ''));
    $server->setclass('PluginWebservicesSoap');
} catch (Exception $e) {
    echo $e;
}
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    $server->handle();
}
開發者ID:paisdelconocimiento,項目名稱:glpi-smartcities,代碼行數:30,代碼來源:soap.php


注:本文中的SoapServer::setclass方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。