Tracing XML request/responses with JAX-WS when error occurs

后端 未结 8 1874
独厮守ぢ
独厮守ぢ 2020-12-01 03:17

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

相关标签:
8条回答
  • 2020-12-01 03:39

    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

    0 讨论(0)
  • 2020-12-01 03:46

    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
    
    0 讨论(0)
提交回复
热议问题