Hi Krystian,
Another way to do it is specify in/out logging interceptor for you
endpoint.
<jaxws:endpoint
id="hello_world_xml_bare"
implementor="demo.hw.server.GreeterImpl"
wsdlLocation="WEB-INF/wsdl/hello_world.wsdl"
address="/hello_world">
<jaxws:inInterceptors>
<bean
class="org.apache.cxf.interceptor.LoggingInInterceptor">
</bean>
</jaxws:inInterceptors>
<jaxws:outInterceptors>
<bean
class="org.apache.cxf.interceptor.LoggingOutInterceptor">
</bean>
</jaxws:outInterceptors>
</jaxws:endpoint>
I just test it with our servlet samples, it works
Cheers
Freeman
Paibir, Ajay wrote:
Hi Krystian,
It can be done as below.
<jaxws:endpoint name="<endpoint qname>">
<jaxws:features>
<bean class="org.apache.cxf.feature.LoggingFeature"/>
</jaxws:features>
</jaxws:endpoint>
Ajay
-----Original Message-----
From: Krystian Lider [mailto:[EMAIL PROTECTED]
Sent: 15 June 2007 11:38
To: cxf-user@incubator.apache.org
Subject: Re: Logging SOAP Messages
Hi Freeman
Thanks for the replay.
Is there any way to do that using eg Spring configuration file?
To publish endpoints I use XML Spring configuration file
which I put inside my WAR.
On 6/15/2007 12:28 PM,User Freeman Fang wrote:
Hi Krystian,
When you publish your server, you can add log intercepor for your
endponint.
Some thing like
Object implementor = new RemedyTsExtractImpl();
String address = "http://localhost:10000";
EndpointImpl e = (EndpointImpl)Endpoint.publish(address,
implementor);
e.getServer().getEndpoint().getInInterceptors().add(new
LoggingInInterceptor());
e.getServer().getEndpoint().getOutInterceptors().add(new
LoggingOutInterceptor());
By this way you can see the request and response message on
server side.
Cheers
Freeman
Krystian Lider wrote:
Hi
Do you know how can I enable logging my SOAP XML messages
(request/response) which comes to my server (CXF + Jetty)?
I use below properties file and I have some information in my log
file such as information about creating services from WSDL
file etc.
but that what I really (XML request, response messages
during work of
the server) care is missing. Probably I have to add something.
handlers= java.util.logging.FileHandler
level= INFO
java.util.logging.FileHandler.pattern = ./var/log/cxf_%u.log
java.util.logging.FileHandler.limit = 50000000
java.util.logging.FileHandler.count = 10
java.util.logging.FileHandler.formatter =
java.util.logging.XMLFormatter
java.util.logging.FileHandler.level = INFO
java.util.logging.ConsoleHandler.level = INFO
java.util.logging.ConsoleHandler.formatter =
java.util.logging.SimpleFormatter
I will be thankful for any comments.
--
Best Regards,
Krystian Lider
http://gryfsoft.pl
----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland