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


PHP Zend_Soap_Client::__construct方法代码示例

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


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

示例1:

 /**
  * Local client constructor
  *
  * @param Zend_Soap_Server $server
  * @param string $wsdl
  * @param array $options
  */
 function __construct(Zend_Soap_Server $server, $wsdl, $options = null)
 {
     $this->_server = $server;
     // Use Server specified SOAP version as default
     $this->setSoapVersion($server->getSoapVersion());
     parent::__construct($wsdl, $options);
 }
开发者ID:alefernie,项目名称:intranet,代码行数:14,代码来源:Local.php

示例2: __construct

    /**
     * Constructor
     *
     * @param string $wsdl
     * @param array $options
     */
    public function __construct($wsdl = null, $options = null)
    {
        // Use SOAP 1.1 as default
        $this->setSoapVersion(SOAP_1_1);

        parent::__construct($wsdl, $options);
    }
开发者ID:nhp,项目名称:shopware-4,代码行数:13,代码来源:DotNet.php

示例3: __construct

 /**
  *
  * @param array $options A array of config values
  * @param string $wsdl The wsdl file to use
  * @access public
  */
 public function __construct(array $options = array(), $wsdl = 'input2.wsdl')
 {
     foreach (self::$classmap as $key => $value) {
         if (!isset($options['classmap'][$key])) {
             $options['classmap'][$key] = $value;
         }
     }
     parent::__construct($wsdl, $options);
 }
开发者ID:knatorski,项目名称:SMS,代码行数:15,代码来源:MoSmsService.php

示例4: __construct

 /**
  * Constructor
  * @param string $wsdl URL to WSDL
  * @param string $username WSSE Username
  * @param string $password WSSE Password
  */
 public function __construct($wsdl, $options = null, $username = null, $password = null)
 {
     parent::__construct($wsdl, $options);
     $this->soapClient = new WSSoapClient(array($this, '_doRequest'), $wsdl, array_merge($this->getOptions(), $options ? $options : array()));
     if ($username && $password) {
         $this->soapClient->setUsernamePassword($username, $password);
     }
     $this->setSoapClient($this->soapClient);
 }
开发者ID:rboyatt,项目名称:mahara,代码行数:15,代码来源:wsse_soap_client.php

示例5: __construct

 /**
  * Constructor method
  *
  * Expects a configuration parameter.
  *
  * @param Enlight_Config $config
  */
 public function __construct($config)
 {
     $wsdl = 'https://ipayment.de/service/3.0/?wsdl';
     if ($config->get('ipaymentSandbox')) {
         $this->accountData = array('accountId' => '99999', 'trxuserId' => '99998', 'trxpassword' => '0', 'adminactionpassword' => '5cfgRT34xsdedtFLdfHxj7tfwx24fe');
     } else {
         $this->accountData = array('accountId' => $config->get('ipaymentAccountId'), 'trxuserId' => $config->get('ipaymentAppId'), 'trxpassword' => $config->get('ipaymentAppPassword'), 'adminactionpassword' => $config->get('ipaymentAdminPassword'));
     }
     parent::__construct($wsdl, array('useragent' => 'Shopware ' . Shopware::VERSION));
 }
开发者ID:shopwareLabs,项目名称:SwagPaymentIpayment,代码行数:17,代码来源:Client.php

示例6: fopen

 function __construct($wsdl = null, $options = null)
 {
     parent::__construct($wsdl, $options);
     $path = $this->targetFileDirectory();
     if (file_exists($path)) {
         if (is_writable($path)) {
             $fp = fopen($path, "w");
             $this->handle = $fp;
         }
     }
 }
开发者ID:knatorski,项目名称:SMS,代码行数:11,代码来源:Client.php

示例7: __construct

 /**
  * Constructor
  */
 public function __construct($store = null)
 {
     /* @var $config Dhl_Intraship_Model_Config */
     $config = Mage::getModel('intraship/config');
     parent::__construct($config->getSoapWsdl($store), array('location' => $config->getWebserviceEndpoint($store), 'login' => $config->getWebserviceAuthUsername(), 'password' => $config->getWebserviceAuthPassword(), 'encoding' => 'UTF-8', 'compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_DEFLATE));
     $header = sprintf('<ns1:Authentification>
             <ns1:user>%s</ns1:user>
             <ns1:signature>%s</ns1:signature>
             <ns1:type>0</ns1:type>
         </ns1:Authentification>', $config->getAccountUser($store), $config->getAccountSignature($store));
     parent::addSoapInputHeader(new SoapHeader('ns1', 'Authentification', new SoapVar($header, XSD_ANYXML)), true);
 }
开发者ID:igorvasiliev4,项目名称:magento_code,代码行数:15,代码来源:Client.php

示例8: __construct

 /**
  * Constructor
  * @param string $serverurl
  * @param array $auth
  * @param array $options PHP SOAP client options - see php.net
  */
 public function __construct($serverurl, $auth, $options = null)
 {
     $this->serverurl = $serverurl;
     $values = array();
     foreach ($auth as $k => $v) {
         $values[] = "{$k}=" . urlencode($v);
     }
     $values[] = 'wsdl=1';
     $this->auth = implode('&', $values);
     $this->wsdl = $this->serverurl . "?" . $this->auth;
     parent::__construct($this->wsdl, $options);
 }
开发者ID:rboyatt,项目名称:mahara,代码行数:18,代码来源:lib.php

示例9: __construct

 /**
  * Constructor
  *
  * @param string $serverurl a Moodle URL
  * @param string $token the token used to do the web service call
  * @param array $options PHP SOAP client options - see php.net
  */
 public function __construct($serverurl, $token, $options = null)
 {
     $this->serverurl = $serverurl;
     $wsdl = $serverurl . "?wstoken=" . $token . '&wsdl=1';
     parent::__construct($wsdl, $options);
 }
开发者ID:alanaipe2015,项目名称:moodle,代码行数:13,代码来源:lib.php

示例10: __construct

 /**
  * Constructor method
  * 
  * Expects a configuration parameter.
  *
  * @param Enlight_Config $config
  */
 public function __construct($config)
 {
     if($config->debug) {
         $wsdl = $this->apiUrlSandbox;
     } else {
         $wsdl = $this->apiUrlLive;
     }
     foreach (array('merchantId', 'merchantLicense') as $key) {
         if(isset($config->$key)) {
             $this->$key = $config->$key;
         }
     }
     parent::__construct($wsdl, array());
 }
开发者ID:nhp,项目名称:shopware-4,代码行数:21,代码来源:Client.php

示例11: __construct

 public function __construct($config = null, Mage_Sales_Model_Order $order = null, array $options = null)
 {
     if ($config) {
         $this->setConfig($config);
     }
     if ($order) {
         $this->setOrder($order);
     }
     if (!is_array($options)) {
         $options = array();
     }
     $options['soap_version'] = SOAP_1_1;
     parent::__construct(null, $options);
 }
开发者ID:igorvasiliev4,项目名称:magento_code,代码行数:14,代码来源:Client.php


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