/** * 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); }
/** * 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); }
/** * * @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); }
/** * 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); }
/** * 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)); }
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; } } }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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()); }
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); }