JBoss Community

Re: Dump SOAP messages for web services in JBoss

created by Jay Kumar SenSharma in JBoss Web Services - View the full discussion

Hi,

 

   One way to achieve the same in JBoss AS7 is to use the  "LoggingInInterceptor" and "LoggingOutInterceptor"  On server side or on Client side .

 

 

/* Following part of code is needed for client side Logging of Soap request/response */

        /* We need to make sure that we place the "log4j.properties" file inside clients classpath */

 

        Client client = ClientProxy.getClient(port);

        client.getInInterceptors().add(new LoggingInInterceptor());

        client.getOutInterceptors().add(new LoggingOutInterceptor());

 

   http://middlewaremagic.com/jboss/?p=1300

 

And

 

    http://cxf.apache.org/docs/debugging-and-logging.html

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community