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 ());
}
}
這讓我在裏ght路徑。在這個過程中,我碰到了這個系統屬性:https://docs.jboss.org/author/display/WFLY8/Advanced+User+Guide#AdvancedUserGuide-Systemproperty – Jim
我不知道這個屬性。我不知道它是標準的cxf還是自己的jboss – pedrofb