Hi.

1)
if using the example i sent before with 
JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
then you can use 
factory.setFeatures(...)

2)
if you use service stub implementation which was generated from wsdl2java, 
then there is an operation to fetch port with parameter 
[WebServiceFeature... features]
it should be enought to put loggingfeature instance there .. but question 
is how to initialize it .. maybe like this:
new LoggingFeature().initialize(server, null);


best regards
jano




Gary Weaver <[EMAIL PROTECTED]> 
06/10/2008 23:08
Bitte antworten an
[email protected]


An
[email protected]
Kopie

Thema
how do I enable logging of the SOAP request and response in CXF in 
straight Java?  [Virus checked]






Hello again,

In Axis2 I was able to enable logging of the SOAP request and response 
along with the headers using the following in log4j.properties:

log4j.logger.httpclient.wire.content=DEBUG #SOAP Request and Response
log4j.logger.httpclient.wire.header=DEBUG #HTTP Headers

However, in CXF, when I turn on full debug logging in log4j.properties 
via:

log4j.rootCategory=DEBUG, ...

I did a search through the log produced after calling the service and 
getting a response, but it appeared that the request and response were 
not logged.

I then read at the following page how to configure the logging 
interceptors using Spring:
http://cwiki.apache.org/CXF20DOC/configuration.html

However, the examples were all using Spring, which is fine, but for this 
simple test client, I was just using Java. Should I just switch to using 
the Spring config to configure CXF to enable logging, or is there an 
easy enough way to turn on logging either via log4j.properties (even 
though I don't think there is, since I had it on full-force) or via Java 
code?

Thanks in advance,

Gary

-- 
Gary Weaver
Internet Framework Services
Office of Information Technology
Duke University




Reply via email to