Hallo SeKrebs,
hier ist Code
PHP-Code:
class My_Soap_Client extends Zend_Soap_Client
{
protected $classmap = array ('WSType' => 'MyType');
function __construct()
{
$this->soapOptions['classmap'] = $this->classmap;
$this->soapOptions['proxy_host'] = $this->appOptions->app->proxy->url;
$this->soapOptions['proxy_port'] = $this->appOptions->app->proxy->port;
parent::__construct($this->wsdl, $this->soapOptions);
}
function execute($myfoo,$mybar,$mybaz)
{
$params = array(
'foo' => $myfoo,
'bar' => $mybar,
'baz' => $mybaz);
$this->result = $this->getWsType($params);
return $this;
}
}
MyType erbt von MyExtendenType und MyExtendedType erbt wiederrum von MyBaseType. __wakeup wird nur in MyBaseType aufgerufen.
Lesezeichen