-
1. Re: Dump SOAP messages for web services in JBoss
asoldano Jul 2, 2012 10:46 AM (in response to qwerty1234)The documentation you're referring to is for JBossWS 3.x.
For JBossWS 4.x / JBoss AS 7.x, please refer to
In particular, given this topic was not fully covered yet in the doc, I've just added the following:
https://docs.jboss.org/author/display/JBWS/Advanced+User+Guide#AdvancedUserGuide-Logging
-
2. Re: Dump SOAP messages for web services in JBoss
jaysensharma Aug 20, 2012 9:06 AM (in response to qwerty1234)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
On The Ser\ver Side For CXF SOAP Message Logging we can use the following System Property:
<system-properties> <property name="org.apache.cxf.logging.enabled" value="true"/> </system-properties>
-
3. Re: Dump SOAP messages for web services in JBoss
apatispelikan Oct 18, 2012 3:03 AM (in response to qwerty1234)You can use a proxy or if not possible (https) you can set this system-property
-Dcom.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.dump=true
to enable the dump of any jaxws-soap-network traffic. Google for it to find more details.
-
4. Re: Dump SOAP messages for web services in JBoss
vlad.bujoreanu Apr 10, 2014 6:52 AM (in response to qwerty1234)In Jboss AS 7.1 , in the configuration/standalone-full.xml (or which you use ) , you can add this
<logger category="org.jboss.ws.core.MessageTrace">
<level name="TRACE"/>
</logger>
And enable trace on console / file where needed. Also packages as org or javax should be set to warn level to avoid excessive logging
-
5. Re: Dump SOAP messages for web services in JBoss
rsvoboda Apr 28, 2016 7:58 AM (in response to jaysensharma)Another option is to use value="pretty" for nicely formatted xml output. See https://github.com/apache/cxf/blob/master/core/src/main/java/org/apache/cxf/bus/extension/ExtensionManagerBus.java#L68-L72