I want to log raw soap post requests if there are any errors , I am using JAX-WS. Any help will be appreciated.
Is there an easy way (aka: not using a proxy) to get
Use
com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.dump=true
and
com.sun.xml.internal.ws.transport.http.HttpAdapter.dump=true
instead (note the "internal" in the package name), this did the trick for me.
Cheers, Torsten
If you working with Jboss 6.1 and you want to print the logs for the JAX-WS generated classes request to the SOAP web service,
open the file /home/oracle/jboss-eap-6.1/bin/standalone.sh
note: please go where you have installed jboss
You will find something like this
JAVA_OPTS="$JAVA_OPTS -agentlib:jdwp=transport=dt_socket,address=$DEBUG_PORT,server=y,suspend=n"
Change it to the one shown below
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=true -agentlib:jdwp=transport=dt_socket,address=$DEBUG_PORT,server=y,suspend=n"
Also make sure you enable debug
DEBUG_MODE=true