0
サーバーからの発信SOAPメッセージのログに問題があります。 handleMessageメソッドは、メッセージの内容を期待どおりに上書きしません。送信SOAPをメッセージにどのように格納するのですか?CXFログSOAP出力
public class OutgoingSoapInterceptor extends AbstractPhaseInterceptor<Message> {
private static final Logger logger = LoggerFactory.getLogger(OutgoingSoapInterceptor.class.getName());
public OutgoingSoapInterceptor()
{
super(Phase.PRE_STREAM);
}
@Override
public void handleMessage(Message message) throws Fault {
logger.debug("outbound soap handleMessage");
OutputStream os = message.getContent (OutputStream.class);
CacheAndWriteOutputStream cwos = new CacheAndWriteOutputStream (os);
message.setContent (OutputStream.class, cwos);
cwos.registerCallback (new LoggingOutCallBack ());
}
}
これは私をriに置いたghtパス。このプロセスで、私はこのシステムプロパティを実行しました:https://docs.jboss.org/author/display/WFLY8/Advanced+User+Guide#AdvancedUserGuide-Systemproperty – Jim
私はそのプロパティを知らなかった。私はそれがcxfまたは自分のjbossの標準であるかどうかわからない – pedrofb