当前位置: 首页>>代码示例>>PHP>>正文


PHP SoapServer::__construct方法代码示例

本文整理汇总了PHP中SoapServer::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP SoapServer::__construct方法的具体用法?PHP SoapServer::__construct怎么用?PHP SoapServer::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SoapServer的用法示例。


在下文中一共展示了SoapServer::__construct方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

	public function __construct($wsdl, $accounting)
	{
		parent::__construct($wsdl, array("encoding" => "utf-8"));

		$this->accounting = $accounting;
		$this->setObject($this);
	}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:7,代码来源:class.soapserver.php

示例2: __construct

 public function __construct($wsdl, array $options = null)
 {
     $xml_security = new XML_Security();
     $xml_security->enableExternalLoadOfEntities();
     parent::__construct($wsdl, $options);
     $xml_security->disableExternalLoadOfEntities();
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:7,代码来源:TuleapSOAPServer.class.php

示例3: __construct

 /**
  * Creates and returns a new SoapServer
  * with empty inbound and outbound pipelines.
  *
  * @param   string|null $wsdl
  * @param   array       $options
  */
 public function __construct($wsdl, array $options = array())
 {
     parent::__construct($wsdl, $options);
     // initialize in and outbound pipelines
     $this->inboundPipeline = new Pipeline();
     $this->outboundPipeline = new Pipeline();
 }
开发者ID:carlosafonso,项目名称:soapi,代码行数:14,代码来源:SoapServer.php

示例4: __construct

 /**
  * Constructor.
  *
  * @param string               $wsdl    WSDL file
  * @param array(string=>mixed) $options Options array
  */
 public function __construct($wsdl, array $options = array())
 {
     // store SOAP version
     if (isset($options['soap_version'])) {
         $this->soapVersion = $options['soap_version'];
     }
     // create soap kernel instance
     $this->soapKernel = new SoapKernel();
     // set up type converter and mime filter
     $this->configureMime($options);
     // we want the exceptions option to be set
     $options['exceptions'] = true;
     parent::__construct($wsdl, $options);
 }
开发者ID:notrix,项目名称:BeSimpleSoapServer,代码行数:20,代码来源:SoapServer.php

示例5: __construct

 public function __construct($server = null)
 {
     $this->speed = microtime(true);
     if (empty($server)) {
         $this->server = $_SERVER;
     } else {
         $this->server = $server;
     }
     $this->post = file_get_contents("php://input");
     /*
     ini_set('soap.wsdl_cache_enabled', '0');
     ini_set('soap.wsdl_cache_ttl', '0'); 
     */
     $this->config = (include_once CONFIG_FILE);
     parent::__construct(null, array('uri' => "http://api.example.com"));
     //date_default_timezone_set('Asia/Hong_Kong');
     $this->logging = new \framework\log\Logging($logfile = $this->config['logdir'] . 'log.' . date('Y-m-d') . '.log');
     $this->logging->info('SOAP Server start...');
     $this->logging->debug($this->post);
     $this->acl();
     $this->load();
     $this->setClass($this->class);
 }
开发者ID:xingcuntian,项目名称:SOA,代码行数:23,代码来源:soap.class.php

示例6: unserialize

 /**
  * Constructor
  */
 function __construct()
 {
     $this->nombreWS = NOMBRE_WEB_SERVICE;
     $this->metodos = unserialize(METODOS_SOAP);
     return parent::__construct(WSDL, unserialize(OPCIONES_SOAP));
 }
开发者ID:Veridata,项目名称:catalogoVFarma,代码行数:9,代码来源:SoapServerVeridata.php

示例7: __construct

 public function __construct($wsdl)
 {
     parent::__construct($wsdl);
     $this->setClass("ACCOUNTING_QUICKBOOKS_HANDLERS");
 }
开发者ID:nirvana-info,项目名称:old_bak,代码行数:5,代码来源:class.server.php

示例8: foreach

 function __construct()
 {
     // to support SoapGatewayBase
     // --------------------------
     if (!$this->mWsdlFile && !empty($this->mRegisteredFunctions)) {
         foreach ($this->mRegisteredFunctions as $func_name => $params) {
             if (is_array($params) && $params != NULL) {
                 $this->Register($func_name, $params['in'], $params['out'], $params['namespace'], $params['soapaction'], $params['style'], $params['use'], $params['documentation'], $params['encodingStyle']);
             } else {
                 $this->Register($func_name);
             }
         }
     }
     ///////////
     if (!$this->mWsdlFile && empty($this->mRegisteredFunctions)) {
         // doing magic here... avrakedavra!
         // $mServiceDescriptions is a static property, so it won't be inherited
         // as the result, we must do some tricks here. first we find what class is
         // being instantiated (from the dispatcher, of course. mmm.. no, no, use
         // get_class instead. it's definitly more efficient). then we use that
         // information to obtain the actual $mServiceDescriptions
         // see note about $mServiceDescriptions above for another information
         $class_name = get_class($this);
         eval('$service_description = ' . $class_name . '::$mServiceDescriptions;');
         if (!empty($service_description)) {
             // get default binding style
             eval('$default_style = ' . $class_name . '::$mServiceBindingStyle;');
             // setting up wsdl
             $this->ConfigureWsdl($class_name, FALSE, Configuration::Instance()->GetValue('application', 'baseaddress') . Dispatcher::Instance()->GetUrl(Dispatcher::Instance()->mModule, Dispatcher::Instance()->mSubModule, Dispatcher::Instance()->mAction, Dispatcher::Instance()->mType, TRUE), $default_style);
             // register functions to be exposed as service
             if (isset($service_description['service']) && is_array($service_description['service'])) {
                 foreach ($service_description['service'] as $func_name => $params) {
                     // skip undeclared fuctions
                     if (!method_exists($this, 'Service' . $func_name)) {
                         continue;
                     }
                     if (is_array($params) && $params != NULL) {
                         $this->Register($func_name, $params['in'], $params['out'], $params['namespace'], $params['soapaction'], $params['style'], $params['use'], $params['documentation'], $params['encodingStyle']);
                     } else {
                         $this->Register($func_name);
                     }
                 }
             }
             // register types used in services
             if (isset($service_description['type']) && is_array($service_description['type'])) {
                 foreach ($service_description['type'] as $type_name => $params) {
                     if (is_array($params) && $params != NULL) {
                         if ($params['typeClass'] == 'complexType' || $params['typeClass'] == 'attribute') {
                             $this->wsdl->addComplexType($type_name, $params['typeClass'], $params['phpType'], $params['compositor'], $params['restrictionBase'], $params['elements'], $params['attrs'], $params['arrayType']);
                         } else {
                             if ($params['typeClass'] == 'simpleType') {
                                 // always scalar
                                 $this->wsdl->addSimpleType($type_name, $params['restrictionBase'], $params['typeClass'], 'scalar', $params['enumeration']);
                             }
                         }
                     }
                 }
             }
         }
     }
     $this->mWsdlFile = NULL;
     $soap_server_options = array();
     if (!$this->mWsdlFile && empty($this->mRegisteredFunctions) && empty($service_description)) {
         $soap_server_options['uri'] = Configuration::Instance()->GetValue('application', 'baseaddress') . Configuration::Instance()->GetValue('application', 'basedir');
     } else {
         // generate wsdl
         if ($this->wsdl) {
             $this->mWsdlFile = Configuration::Instance()->GetTempDir() . '/php_wsdl-' . md5(Configuration::Instance()->GetValue('application', 'baseaddress') . Dispatcher::Instance()->GetUrl(Dispatcher::Instance()->mModule, Dispatcher::Instance()->mSubModule, Dispatcher::Instance()->mAction, Dispatcher::Instance()->mType, TRUE));
             $wsdl_string = $this->wsdl->serialize($this->mDebugMode);
             $fp = fopen($this->mWsdlFile, 'w');
             fwrite($fp, $wsdl_string);
             fclose($fp);
         }
     }
     parent::__construct($this->mWsdlFile, $soap_server_options);
     $this->setClass('SoapResponseDummy', $this);
 }
开发者ID:rifkiferdian,项目名称:gtfw_boostab,代码行数:77,代码来源:PhpResponse.class.php


注:本文中的SoapServer::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。