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