EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Inclusive Namespaces Prefixlist for Canonicalization

Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.
#20853
Posted: 07/23/2012 15:52:07
by Daryl Nickerson (Basic support level)
Joined: 07/23/2012
Posts: 1

How do I set a separate InclusiveNamespaces PrefixList for the Canonicalization List and Transform elements. For example, the specs of of the integration I am trying to do requires this format:

Code
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
   <ec:InclusiveNamespaces PrefixList="dat soapenv" xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"/>
</ds:CanonicalizationMethod>
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
<ds:Reference URI="#id-31">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
  <ec:InclusiveNamespaces PrefixList="dat" xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"/>
</ds:Transform>
</ds:Transforms>


When I add
Code
C14N.InclusiveNamespacesPrefixList := 'dat';

I get an InclusiveNameSpaces element in the Transform element, but nothing in the Canonicalization element, as shown:

Code
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
<ds:Reference URI="#id-31">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<ec:InclusiveNamespaces xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="dat"/>
</ds:Transform>
</ds:Transforms>


Thanks.
#20856
Posted: 07/24/2012 03:07:21
by Vsevolod Ievgiienko (EldoS Corp.)

Thank you for contacting us.

You can add 'PrefixList' using TElXMLSigner.OnFormatElement event handler. The code will look like:

Code
Element.AttribStrings['PrefixList'] := 'dat';

Reply

Statistics

Topic viewed 2503 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!