當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。