public function __construct($options) { parent::__construct($this->getWsdl(), array('trace' => true, 'classmap' => $options['classmap'])); $headers = new \stdClass(); $headers->authToken = $options['authToken']; $headers->developerToken = $options['developerToken']; $headers->clientEmail = $options['login']; $header = new \SoapHeader($this->getNamespace(), 'RequestHeader', $headers); $this->__setSoapHeaders($header); }
public function __construct($options) { parent::__construct($this->getWsdl(), array('trace' => true, 'classmap' => $options['classmap'])); $headers = array(new \SoapHeader($this->getNamespace(), 'email', $options['login']), new \SoapHeader($this->getNamespace(), 'password', $options['password']), new \SoapHeader($this->getNamespace(), 'useragent', 'CASLib'), new \SoapHeader($this->getNamespace(), 'developerToken', $options['developerToken']), new \SoapHeader($this->getNamespace(), 'clientEmail', $options['login'])); $this->__setSoapHeaders($headers); }