You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by Sameera Perera <ww...@gmail.com> on 2005/03/01 17:32:51 UTC

problem with registerIdAttributeName when ID is namespace qualified...

Hi,

I'm working on a Web serviceses security implemententation. For this I need
to register wsu:Id as an ID for referencing (in keeping with the spec)
However the following doesn't work on
the doc
<S11:Envelope xmlns:S11="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurit
y-utility-1.0.xsd">
 <S11:Body wsu:Id="myBody">
  <tru:StockSymbol xmlns:tru="http://www.fabrikam123.com/payloads">
   QQQQ
  </tru:StockSymbol>
 </S11:Body>
</S11:Envelope>


DSIGSignature* sig;
...
sig->registerIdAttributeName(MAKE_UNICODE_STRING("wsu:Id");
sig->createReference("#myBody");
...
sig->sign();

How can I get this to work?
The error is Referenced ID not found in DOM

Regards,
Sameera Perera.


Re: problem with registerIdAttributeName when ID is namespace qualified...

Posted by Berin Lautenbach <be...@wingsofhermes.org>.
Sameera,

*Long* time after you wrote this - my apologies.

We have recently implemented another method on DSIGSignature that allows 
you to register names of Id in particular namespaces.  See

http://nagoya.apache.org/~blautenb/xml-security-c/apiDocs/classDSIGSignature.html#z101_4

Cheers,
	Berin

Sameera Perera wrote:

> Hi,
> 
> I'm working on a Web serviceses security implemententation. For this I need
> to register wsu:Id as an ID for referencing (in keeping with the spec)
> However the following doesn't work on
> the doc
> <S11:Envelope xmlns:S11="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurit
> y-utility-1.0.xsd">
>  <S11:Body wsu:Id="myBody">
>   <tru:StockSymbol xmlns:tru="http://www.fabrikam123.com/payloads">
>    QQQQ
>   </tru:StockSymbol>
>  </S11:Body>
> </S11:Envelope>
> 
> 
> DSIGSignature* sig;
> ...
> sig->registerIdAttributeName(MAKE_UNICODE_STRING("wsu:Id");
> sig->createReference("#myBody");
> ...
> sig->sign();
> 
> How can I get this to work?
> The error is Referenced ID not found in DOM
> 
> Regards,
> Sameera Perera.
> 
> 
>