What's brewing
« Finding the right user to test your software | Main | Low end dedicated server vs a powerful VPS »
Monday
Jun022008

Case sensitivity in namespace prefix affects XML Signature Operation

We were diagnosing an exception thrown in XML signature validation.


<Cannot check signature - Current Node: [#document: null]>



After digging around, we noticed that the XML in process is referencing an element with the name space value in different letter case.

The name space is declared as follows,


<SOAP-ENV:Envelope xmlns:SOAP-ENV=" ... >



But in the transform, we reference the element like this and turns out to be failed


<ds:Transform Algorithm="http://www.w3.org/...>

  <ds:XPath>
    not(ancestor-or-self::node()[@soap-env:actor=\"urn:oasis:names:tc:ebxml- ...

  </ds:XPath>

</ds:Transform>



Did you spot the difference? Yes, it's the case of "SOAP-ENV" declared in the Envelope to be upper case but the one referenced in the transform is in lower case.

Once it is fixed, all works.

Reader Comments (1)

Tahnks for posting

August 3, 2008 | Unregistered CommenterRenClemi

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>