You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-dev@ws.apache.org by Rajan Gupta <Ra...@Yodlee.com> on 2009/10/14 03:00:24 UTC
Rampart removing namespace declarations
I couldn't find a rampart user mailing list and hence, posting my
question to the dev mailing list.
-----------------
Hi,
I am using rampart with Axis2. While some of the calls are working
fine, most of the calls are failing when I engage rampart. This is
because the soap message gets changed after I enabled rampart. See the
example below:
Before enabling rampart-
<userCredentials xmlns:ns8="http://test.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ns8:PasswordCredentials">
After enabling rampart
<userCredentials xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ns8:PasswordCredentials">
The declaration of namespace prefix "ns8" has been removed as part of
canonicalization and axis2 cannot parse the xml as xsi:type refers to
ns8.
Any help/pointers on sorting this out would be greatly appreciated.
I read somewhere about "UnsuppressedNamespacePrefixList
<http://www.w3.org/Signature/Drafts/xml-exc-c14n#Specification> " that
can be provided to canonicalization engine but couldn't find how to
supply this parameter to rampart/wss4j.
Thanks,
Rajan