public function getSecurityHeader($login, $password)
    {
        $authHeader = sprintf(
            $this->getSecurityHeaderTemplate(),
            htmlspecialchars($login),
            htmlspecialchars($password)
        );

        return new \SoapHeader(
            'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd',
            'Security',
            new \SoapVar($authHeader, XSD_ANYXML)
        );
    }
public function getSecurityHeader($login, $password)
    {
        $authHeader = sprintf(
            $this->getSecurityHeaderTemplate(),
            htmlspecialchars($login),
            htmlspecialchars($password)
        );

        return new \SoapHeader(
            'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd',
            'Security',
            new \SoapVar($authHeader, XSD_ANYXML)
        );
    }
public function getSecurityHeader ( $ login , $ password ) { $ authHeader = sprintf ( $ this -> getSecurityHeaderTemplate ( ) , htmlspecialchars ( $ login ) , htmlspecialchars ( $ password ) ) ; return new \ SoapHeader ( 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd' , 'Security' , new \ SoapVar ( $ authHeader , XSD_ANYXML ) ) ; }
Return an instance of SoapHeader for WS Security

@param string $login
@param string $password

@return \SoapHeader
Return an instance of SoapHeader for WS Security