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


PHP nusoap_client::__construct方法代码示例

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


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

示例1: array

 /**
  * The constructor
  * 
  * @param string  $rooturl     The URL of the wsdl file
  * @param string  $type        The type of exchange
  * @param array   $options     An array of options
  * @param boolean $loggable    True if you want to log all the exchanges with the web service
  * @param string  $local_cert  Path of the certifacte
  * @param string  $passphrase  Pass phrase for the certificate
  * @param boolean $safe_mode   Safe mode
  * @param boolean $verify_peer Require verification of SSL certificate used
  * @param string  $cafile      Location of Certificate Authority file on local filesystem
  *
  * @throws CMbException
  *
  * @return CNuSOAPClient
  */
 function __construct($rooturl, $type = null, $options = array(), $loggable = null, $local_cert = null, $passphrase = null, $safe_mode = false, $verify_peer = false, $cafile = null)
 {
     $this->wsdl_url = $rooturl;
     if ($loggable) {
         $this->loggable = $loggable;
     }
     if ($type) {
         $this->type_echange_soap = $type;
     }
     if (!$safe_mode) {
         if (!($html = file_get_contents($this->wsdl_url))) {
             $this->soap_client_error = true;
             throw new CMbException("CSourceSOAP-unable-to-parse-url", $this->wsdl_url);
         }
         if (strpos($html, "<?xml") === false) {
             $this->soap_client_error = true;
             throw new CMbException("CSourceSOAP-wsdl-invalid");
         }
     }
     if (array_key_exists("encoding", $options)) {
         $encoding = $options["encoding"];
         $this->soap_defencoding = $encoding;
         if ($encoding == "UTF-8") {
             $this->decode_utf8 = false;
         }
     }
     if ($local_cert) {
         $this->certRequest = array("sslcertfile" => $local_cert);
     }
     if ($passphrase) {
         $this->certRequest = array("passphrase" => $passphrase);
     }
     parent::__construct($rooturl, true, false, false, false, false, CAppUI::conf("webservices connection_timeout"));
     $this->wsdl_url = $rooturl;
 }
开发者ID:fbone,项目名称:mediboard4,代码行数:52,代码来源:CNuSOAPClient.class.php

示例2:

 function __construct($wsdlUrl, $username, $password)
 {
     $this->authtype = 'basic';
     $this->username = $username;
     $this->password = $password;
     parent::__construct($wsdlUrl, 'wsdl');
 }
开发者ID:richhl,项目名称:kalturaCE,代码行数:7,代码来源:AkamaiClient.php

示例3: __construct

 /**
  * Constructor
  */
 public function __construct()
 {
     $endpoint = $this->getEndpoint();
     $this->setupNuSoap($endpoint);
     $options = $this->getOptions();
     parent::__construct($endpoint, false, false, false, false, false, $options['connection_timeout']);
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:10,代码来源:SugarHeartbeatClient.php

示例4:

 function __construct($wsdlUrl, $username = null, $password = null)
 {
     $this->authtype = 'basic';
     $this->username = $username;
     $this->password = $password;
     parent::__construct($wsdlUrl, 'wsdl');
     $this->setVerbose(false);
 }
开发者ID:DBezemer,项目名称:server,代码行数:8,代码来源:KalturaMediaServerClient.class.php

示例5:

 function __construct()
 {
     $wsdlUrl = kConf::get('live_analytics_web_service_url');
     parent::__construct($wsdlUrl, 'wsdl');
     $this->keepType(true);
 }
开发者ID:DBezemer,项目名称:server,代码行数:6,代码来源:WSLiveReportsClient.class.php

示例6: IShopServerWSService

 public function IShopServerWSService($wsdl = "IShopServerWS.wsdl", $options = array())
 {
     foreach (self::$classmap as $key => $value) {
         if (!isset($options['classmap'][$key])) {
             $options['classmap'][$key] = $value;
         }
     }
     parent::__construct($wsdl, $options);
 }
开发者ID:cjmaximal,项目名称:webasyst-framework,代码行数:9,代码来源:IShopServerWSService.php


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