Skip to content

Problem between encryptSoapDoc that calls addEncryptedKey #61

@edomato

Description

@edomato

Following the example in soap-sign-encrypt.php, I show the related calls to the problem 😄 :

$objWSSE->encryptSoapDoc($siteKey, $objKey, $options);

public function encryptSoapDoc($siteKey, $objKey, $options = null, $encryptSignature = true)

$this->addEncryptedKey($signode, $enc, $siteKey, $options);

encryptSoapDoc calls addEncryptedKey with $siteKey as the third parameter which is a XMLSecurityKey

public function addEncryptedKey($node, $key, $token, $options = null)

addEncryptedKey receives the XMLSecurityKey on the variable $token

$tokenURI = '#'.$token->getAttributeNS(self::WSUNS, 'Id');

and tries to use it as a DOMElement::getAttributeNS call which is incorrect 😞

Greets
Ernesto

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions