- WSEncryptionPart now stores an optional DOM element, which will be used as the element to sign/encrypt if it is non-null.
- Failing this, it finds the SOAP body and compares the wsu:Id with the stored Id, or if there is no stored Id in WSEncryptionPart, it checks the stored localname/namespace.
- Failing this, if the stored Id in WSEncryptionPart is not null, it tries to find the first element in the SOAP envelope that has a matching wsu:Id.
- If the stored Id is null, it tries to find *all* DOM Elements that match the stored localname/namespace.
The DOM element(s) that is(are) found are stored for retrieval, so that we don't need to traverse the SOAP envelope multiple times, when e.g. doing an STR Transform, or for element location in the XML Security code.
Post a Comment