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

后端 未结 8 1916
独厮守ぢ
独厮守ぢ 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:21

    Just thought I would mention this:

    The question when to use the property name with the internal in it and when not ?

    If you read the Metro Guide it will tell you to use:

    on client:

    com.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=true
    

    on server:

    com.sun.xml.ws.transport.http.HttpAdapter.dump=true
    

    However: It seems to me that when JAX-WS RI library got included as standard with the JDK (this was with Java 6) then Sun had to rename the property name to include 'internal'. So if you are using JAX-WS RI as it comes bundled with the JDK, then you must be sure to add the internal to the property name. Otherwise it will not work. In other words you need to use:

    on client:

    com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.dump=true
    

    on server:

    com.sun.xml.internal.ws.transport.http.HttpAdapter.dump=true
    

    On the other hand if you are using a standalone version of JAX-WS RI (or of Metro as a whole) then I would guess you should use the property name without the internal.

    I'll be glad if someone has inside knowledge on this and can say if this is true or not.

提交回复
热议问题