少しの WS-Security (XML 署名) を使用して単純な CXF クライアントとサーバーを作成しています。ここまでは順調ですね。
...
outProps.put("signatureParts",
"{Element}{" + WSU_NS + "}Timestamp;"
+ "{Element}{http://schemas.xmlsoap.org/soap/envelope/}Body;"
+ "{}{http://www.w3.org/2005/08/addressing}ReplyTo;");
outProps.put("signatureAlgorithm", "http://www.w3.org/2000/09/xmldsig#rsa-sha1");
...
client.getOutInterceptors().add(new WSS4JOutInterceptor(outProps));
私が変更したいのは、正規化アルゴリズムEXCLUSIVE
(C14N_EXCL_OMIT_COMMENTS aka " http://www.w3.org/2001/10/xml-exc-c14n# ") です。