Witam, mam problem przy tworzeniu nagłówka przesyłającego security token w klasie SoapHeader, otrzymuje następujący błąd:

Fatal error: Uncaught SoapFault exception: [s:MustUnderstand] Nagłówek „Security” z przestrzeni nazw „http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd” nie został zrozumiany przez odbiorcę tego komunikatu, przez co komunikat nie został przetworzony. Ten błąd zazwyczaj oznacza, że nadawca komunikatu uruchomił protokół komunikacyjny, którego odbiorca nie może przetworzyć. Należy upewnić się, czy konfiguracja powiązań klienta jest spójna z powiązaniem usługi.

Nagłówki tworzę nową klasą w ten sposób:

class WsseAuthHeader extends SoapHeader 
{
    private $wss_ns = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd';
    function __construct($user, $pass, $ns = null) 
    {    
        if ($ns) 
        {        
            $this->wss_ns = $ns;    
        }

        $auth = new stdClass();    

        $auth->Username = new SoapVar($user, XSD_STRING, NULL, $this->wss_ns, NULL, $this->wss_ns);     
        $auth->Password = new SoapVar($pass, XSD_STRING, NULL, $this->wss_ns, NULL, $this->wss_ns);    
        $username_token = new stdClass();    
        $username_token->UsernameToken = new SoapVar($auth, SOAP_ENC_OBJECT, NULL, $this->wss_ns, 'UsernameToken', $this->wss_ns);     
        $security_sv = new SoapVar(        
                                new SoapVar($username_token, SOAP_ENC_OBJECT, NULL, $this->wss_ns, 'UsernameToken', $this->wss_ns),        
                                SOAP_ENC_OBJECT, NULL, $this->wss_ns, 'Security', $this->wss_ns);    

        parent::__construct($this->wss_ns, 'Security', $security_sv, true);
    }
}

Potem w konstruktorze web service'u wywołuje taki fragment kodu:

$wsse_header = new WsseAuthHeader($username, $password);  
    parent::__construct($wsdl, $options);
	parent::__setSoapHeaders(array($wsse_header));

Jakieś pomysły co może być nie tak?