【发布时间】:2013-01-23 22:12:24
【问题描述】:
@InInterceptors(interceptors = "org.apache.cxf.interceptor.LoggingInInterceptor" )
@OutInterceptors(interceptors = "org.apache.cxf.interceptor.LoggingOutInterceptor")
public class SKTWeb implements SKTWebService {
// method logic goes here
}
嗨,在 CXF 方法实现中添加这两行之后。 我可以在 tomcat 服务器控制台下得到 SOAP Requestand Response 的鞭子
在 Tomcat 控制台下查看打印的 SOAP 请求实例
INFO: Inbound Message
----------------------------
ID: 1
Address: /Sktweb-33.0/services/SKTWeb
Encoding: UTF-8
Content-Type: text/xml; charset=UTF-8
Headers: {cache-control=[no-cache], content-type=[text/xml; charset=UTF-8], connection=[keep-alive], host=[local
Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns4:strategy xmlns:ns
谁能告诉我如何在我的日志文件(Log4j)中得到这个
目前这是我的 log4j.properties 文件
log4j.rootCategory=INFO, A1
# A1 is a DailyRollingFileAppender
log4j.appender.A1=org.apache.log4j.DailyRollingFileAppender
log4j.appender.A1.file=/Haieeee.log
log4j.appender.A1.datePattern='.'yyyy-MM-dd
log4j.appender.A1.append=true
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-22d{dd/MMM/yyyy HH:mm:ss} - %m%n
而且我在 Web 应用程序中有 META-INF\cxf\org\apache\cxf\Logger Log4jLogger.class 。 而且我还保留了
<cxf:bus>
<cxf:features>
<cxf:logging/>
</cxf:features>
</cxf:bus>
endpoints.xml 文件内部
请帮忙
【问题讨论】:
标签: cxf