Re: Logging SOAP Messages

2007-06-15 Thread Freeman Fang

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:1;;
   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 = 5000
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.



Re: Logging SOAP Messages

2007-06-15 Thread Krystian Lider

Hi

Probably I have to use:

jaxws:endpoint

   jaxws:inInterceptors
   bean class=com.acme.SomeInterceptor/
/jaxws:inInterceptor

   jaxws:outInterceptors
   bean class=com.acme.SomeInterceptor/
/jaxws:outInterceptor

/jaxws:endpoint


I will try that.

Thanks

On 6/15/2007 12:37 PM,User Krystian Lider wrote:


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:1;;
   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






Re: Logging SOAP Messages

2007-06-15 Thread Freeman Fang

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:1;;
   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 = 5000
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

  


Re: Logging SOAP Messages

2007-06-15 Thread Krystian Lider

Hi
Thank you, that was I needed.

On 6/15/2007 1:08 PM,User Freeman Fang wrote:


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




--
Best Regards,
Krystian Lider




RE: Logging SOAP Messages

2007-06-15 Thread Jiang, Ning (Willem)
Hi Freeman,

It is not a good idea to add the logging interceptor in this way.
We suppose to use the feature to take care all the complex interceptor setting 
things.
In you configuration, you missed the InFaultInterceptors and 
OutFaultInterceptors.
Let's use the Ajay's way to set the logging interceptors.

Cheers,

Willem.
 

-Original Message-
From: Freeman Fang [mailto:[EMAIL PROTECTED]
Sent: 6/15/2007 (ζ˜ŸζœŸδΊ”) 19:08
To: cxf-user@incubator.apache.org
Subject: Re: Logging SOAP Messages
 
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:1;;
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 = 5000
 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