本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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));
}
示例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;
}
}
}
示例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);
}
示例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);
}
示例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);
}
示例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());
}
示例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);
}