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
Following the example in soap-sign-encrypt.php, I show the related calls to the problem 😄 :
wse-php/examples/soap-sign-encrypt.php
Line 47 in c9611f5
wse-php/src/WSSESoap.php
Line 450 in c9611f5
wse-php/src/WSSESoap.php
Line 476 in c9611f5
encryptSoapDoc calls addEncryptedKey with $siteKey as the third parameter which is a XMLSecurityKey
wse-php/src/WSSESoap.php
Line 324 in c9611f5
addEncryptedKey receives the XMLSecurityKey on the variable $token
wse-php/src/WSSESoap.php
Line 390 in c9611f5
and tries to use it as a DOMElement::getAttributeNS call which is incorrect 😞
Greets
Ernesto