Hi,

final Map<String, String> outTransformElements = new TreeMap<String,
String>();
outTransformElements.put("{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Timestamp";,
"wsu:Timestamp
xmlns:wsu=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\"";);

If I put above code then after signing this portion of soap is generated:

<wsu:Timestamp
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
wsu:Id="TS-E21BA5812DCCD6A27C13944595876491"><wsu:Created>2014-03-10T13:53:07.633Z</wsu:Created><wsu:Expires>2014-03-10T13:58:07.633Z</wsu:Expires></wsu:Timestamp
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";>

How can I remove namespace from end element ?
I am forced to do this because timestamp reference can not be validated on
return to the client side.

But namespace in end tag generates this:
Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected
character 'x' (code 120) in end tag Expected '>'.

Thanks.



--
View this message in context: 
http://cxf.547215.n5.nabble.com/Timestamp-reference-not-valid-after-signing-message-tp5741018.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to