Hi.
I have a project where the customer want the Signature element to be placed in a specific place. AppResp shall be signed and Signature should be placed under AppHdr=>Sgntr.
Before signing:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"/>
<soap:Body>
<AppResp>
<AppHdr
<CreDt>2020-08-13T08:35:34.348Z</CreDt>
<Sgntr/>
</AppHdr>
<Document>
...
</Document>
</ns2:AppResp>
</soap:Body>
</soap:Envelope>
After signing:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"/>
<soap:Body>
<AppResp id="applicationResponse">
<AppHdr
<CreDt>2020-08-13T08:35:34.348Z</CreDt>
<Sgntr>
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
<SignedInfo>
<CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
<SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256" />
<Reference URI="#applicationResponse">
....
</Signature>
</Sgntr>
</AppHdr>
<Document>
...
</Document>
</ns2:AppResp>
</soap:Body>
</soap:Envelope>
Is there a way to do this? To tell DP where the Signature element should be placed?
I can move the Signature element after signing but that results in "Incorrect reference digest value" when verifying.
Any help is much appreciated.
/Jocke D
#DataPower#Support#SupportMigration