Arnaud,

I'm using 1.4.2, and the problem I had may not be the same as yours, but
see my messages "Unbound prefix after decryption".

In my case, the problem was that the DOM being passed for encryption id
not have the xmlns attribute set before it was processed. A
normalizeDocument() in the right place fixed the problem.

Peter

Arnaud wrote:
> Hi all,
> 
> Since using Chinese in soap messages which had their header encrypt was not 
> working (and after visiting the XML security page) I upgraded the libraries 
> to 
> 1.4.1 as recommended.
> And now I have the following exception on the serverside:
> com.ctc.wstx.exc.WstxParsingException: Undeclared namespace prefix "ds"
>  at [row,col {unknown-source}]: [6,12]
> 
> The "[row,col {unknown-source}]: [6,12]" refers to the <ds:KeyInfo> of the 
> soap 
> header. If I compare the message sent by the client before the upgrade:
> 
> <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#";>
> ...
> </ds:KeyInfo>
> 
> and after:
> <ds:KeyInfo> 
> ...
> </ds:KeyInfo>
> 
> I can see the namespace disappeared but I have no idea why and how to fix 
> that...
> If anyone has an idea please let me know because I don't know what to do 
> about 
> it and I've alread spend many hours on this...
> 
> Thanks in advance for any help.
> 
> Arnaud.


-- 
Peter B. West <http://cv.pbw.id.au/>
Folio <http://defoe.sourceforge.net/folio/>

Reply via email to