Log SOAP messages

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Log SOAP messages

Charles Moulliard
Hi,

I would like to know if it is possible to log in Camel the SOAP messages arriving at the CXF component ?

I have activated the camel tracing but I don't see the SOAP messages :

124625 [btpool0-1] INFO  org.apache.camel.processor.interceptor.TraceInterceptor  - ID-dell-charles/1419-1223475351125/2
-0 -> interceptor1 Interceptor[Delegate(DeadLetterChannel[Delegate(TraceInterceptor[To[bean:tracker]]), RecipientList[lo
g:org.apache.camel.DeadLetterChannel?level=error], RedeliveryPolicy[maximumRedeliveries=6]])] InOut Properties:{} Header
s:{operationName=PostParcel, org.apache.cxf.service.model.MessageInfo=[MessageInfo INPUT{http://tracker.service.xpectis.
com}PostParcel], org.apache.cxf.message.Message.PROTOCOL_HEADERS={content-type=[text/xml; charset=UTF-8], connection=[ke
ep-alive], Host=[localhost:9000], Content-Length=[359], SOAPAction=[""], User-Agent=[Java/1.6.0_07], Accept=[*], Pragma=
[no-cache], Cache-Control=[no-cache]}, org.apache.cxf.message.Message.HTTP_REQUEST_METHOD=POST, operationNameSpace=http:
//tracker.service.xpectis.com, org.apache.cxf.message.Message.ENCODING=UTF-8, org.apache.cxf.message.Message.QUERY_STRIN
G=null, HTTP.RESPONSE=HTTP/1.1 200

, org.apache.cxf.security.SecurityContext=org.apache.cxf.transport.http.AbstractHTTPDestination$1@1e5d007, org.apache.cx
f.async.post.response.dispatch=true, org.apache.cxf.transport.Destination=org.apache.cxf.transport.http_jetty.JettyHTTPD
estination@1509443, org.apache.cxf.message.MessageFIXED_PARAMETER_ORDER=false, HTTP.REQUEST=POST /tracker HTTP/1.1
Content-Type: text/xml; charset=UTF-8
SOAPAction: ""
Accept: *
Cache-Control: no-cache
Pragma: no-cache
User-Agent: Java/1.6.0_07
Host: localhost:9000
Connection: keep-alive
Content-Length: 359

, HTTP.CONTEXT=ServletContext@135c7b0{/,null}, Content-Type=text/xml; charset=UTF-8, Accept=*, org.apache.cxf.headers.He
ader.list=[], org.apache.cxf.message.Message.PATH_INFO=/tracker, org.apache.cxf.message.Message.BASE_PATH=/tracker} Body
Type:org.apache.cxf.message.MessageContentsList Body:com.xpectis.service.tracker.InputTrackParcel@72cbb9
43124641 [btpool0-1] INFO  org.apache.camel.processor.interceptor.TraceInterceptor  - ID-dell-charles/1419-1223475351125
/2-0 -> to1 To[bean:tracker] InOut Properties:{CamelCauseException=null} Headers:{operationName=PostParcel, org.apache.c
xf.service.model.MessageInfo=[MessageInfo INPUT{http://tracker.service.xpectis.com}PostParcel], org.apache.cxf.message.M
essage.PROTOCOL_HEADERS={content-type=[text/xml; charset=UTF-8], connection=[keep-alive], Host=[localhost:9000], Content
-Length=[359], SOAPAction=[""], User-Agent=[Java/1.6.0_07], Accept=[*], Pragma=[no-cache], Cache-Control=[no-cache]}, or
g.apache.cxf.message.Message.HTTP_REQUEST_METHOD=POST, operationNameSpace=http://tracker.service.xpectis.com, org.apache
.cxf.message.Message.ENCODING=UTF-8, org.apache.cxf.message.Message.QUERY_STRING=null, HTTP.RESPONSE=HTTP/1.1 200

, org.apache.cxf.security.SecurityContext=org.apache.cxf.transport.http.AbstractHTTPDestination$1@1e5d007, org.apache.cx
f.async.post.response.dispatch=true, org.apache.cxf.transport.Destination=org.apache.cxf.transport.http_jetty.JettyHTTPD
estination@1509443, org.apache.cxf.message.MessageFIXED_PARAMETER_ORDER=false, HTTP.REQUEST=POST /tracker HTTP/1.1
Content-Type: text/xml; charset=UTF-8
SOAPAction: ""
Accept: *
Cache-Control: no-cache
Pragma: no-cache
User-Agent: Java/1.6.0_07
Host: localhost:9000
Connection: keep-alive
Content-Length: 359

, HTTP.CONTEXT=ServletContext@135c7b0{/,null}, Content-Type=text/xml; charset=UTF-8, Accept=*, org.apache.cxf.headers.He
ader.list=[], org.apache.cxf.message.Message.PATH_INFO=/tracker, org.apache.cxf.message.Message.BASE_PATH=/tracker} Body
Type:org.apache.cxf.message.MessageContentsList Body:com.xpectis.service.tracker.InputTrackParcel@72cbb9
43124656 [btpool0-1] INFO  com.xpectis.service.common.impl.SaveServiceImpl  - Parcel name : null
43124656 [btpool0-1] INFO  com.xpectis.service.common.impl.SaveServiceImpl  - Parcel dest : null
43124656 [btpool0-1] INFO  com.xpectis.service.common.impl.SaveServiceImpl  - Parcel orig : null
43124656 [btpool0-1] INFO  com.xpectis.service.common.impl.SaveServiceImpl  - Parcel date : null

Charles Moulliard
Apache Committer / Sr. Pr. Consultant at FuseSource.com
Email: [hidden email]
Twitter : @cmoulliard, @fusenews
Blog : http://cmoulliard.blogspot.com
Reply | Threaded
Open this post in threaded view
|

Re: Log SOAP messages

Willem.Jiang
Administrator
Hi

You could log the SOAP message by setting the Logging{In|Out}Interceptor
to the CXF endpoint.
Here is the link for it [1].

[1] http://cwiki.apache.org/confluence/display/CXF20DOC/Debugging

Willem
cmoulliard wrote:

> Hi,
>
> I would like to know if it is possible to log in Camel the SOAP messages
> arriving at the CXF component ?
>
> I have activated the camel tracing but I don't see the SOAP messages :
>
> 124625 [btpool0-1] INFO
> org.apache.camel.processor.interceptor.TraceInterceptor  -
> ID-dell-charles/1419-1223475351125/2
> -0 -> interceptor1
> Interceptor[Delegate(DeadLetterChannel[Delegate(TraceInterceptor[To[bean:tracker]]),
> RecipientList[lo
> g:org.apache.camel.DeadLetterChannel?level=error],
> RedeliveryPolicy[maximumRedeliveries=6]])] InOut Properties:{} Header
> s:{operationName=PostParcel,
> org.apache.cxf.service.model.MessageInfo=[MessageInfo
> INPUT{http://tracker.service.xpectis.
> com}PostParcel],
> org.apache.cxf.message.Message.PROTOCOL_HEADERS={content-type=[text/xml;
> charset=UTF-8], connection=[ke
> ep-alive], Host=[localhost:9000], Content-Length=[359], SOAPAction=[""],
> User-Agent=[Java/1.6.0_07], Accept=[*], Pragma=
> [no-cache], Cache-Control=[no-cache]},
> org.apache.cxf.message.Message.HTTP_REQUEST_METHOD=POST,
> operationNameSpace=http:
> //tracker.service.xpectis.com,
> org.apache.cxf.message.Message.ENCODING=UTF-8,
> org.apache.cxf.message.Message.QUERY_STRIN
> G=null, HTTP.RESPONSE=HTTP/1.1 200
>
> ,
> org.apache.cxf.security.SecurityContext=org.apache.cxf.transport.http.AbstractHTTPDestination$1@1e5d007,
> org.apache.cx
> f.async.post.response.dispatch=true,
> org.apache.cxf.transport.Destination=org.apache.cxf.transport.http_jetty.JettyHTTPD
> estination@1509443,
> org.apache.cxf.message.MessageFIXED_PARAMETER_ORDER=false, HTTP.REQUEST=POST
> /tracker HTTP/1.1
> Content-Type: text/xml; charset=UTF-8
> SOAPAction: ""
> Accept: *
> Cache-Control: no-cache
> Pragma: no-cache
> User-Agent: Java/1.6.0_07
> Host: localhost:9000
> Connection: keep-alive
> Content-Length: 359
>
> , HTTP.CONTEXT=ServletContext@135c7b0{/,null}, Content-Type=text/xml;
> charset=UTF-8, Accept=*, org.apache.cxf.headers.He
> ader.list=[], org.apache.cxf.message.Message.PATH_INFO=/tracker,
> org.apache.cxf.message.Message.BASE_PATH=/tracker} Body
> Type:org.apache.cxf.message.MessageContentsList
> Body:com.xpectis.service.tracker.InputTrackParcel@72cbb9
> 43124641 [btpool0-1] INFO
> org.apache.camel.processor.interceptor.TraceInterceptor  -
> ID-dell-charles/1419-1223475351125
> /2-0 -> to1 To[bean:tracker] InOut Properties:{CamelCauseException=null}
> Headers:{operationName=PostParcel, org.apache.c
> xf.service.model.MessageInfo=[MessageInfo
> INPUT{http://tracker.service.xpectis.com}PostParcel],
> org.apache.cxf.message.M
> essage.PROTOCOL_HEADERS={content-type=[text/xml; charset=UTF-8],
> connection=[keep-alive], Host=[localhost:9000], Content
> -Length=[359], SOAPAction=[""], User-Agent=[Java/1.6.0_07], Accept=[*],
> Pragma=[no-cache], Cache-Control=[no-cache]}, or
> g.apache.cxf.message.Message.HTTP_REQUEST_METHOD=POST,
> operationNameSpace=http://tracker.service.xpectis.com, org.apache
> .cxf.message.Message.ENCODING=UTF-8,
> org.apache.cxf.message.Message.QUERY_STRING=null, HTTP.RESPONSE=HTTP/1.1 200
>
> ,
> org.apache.cxf.security.SecurityContext=org.apache.cxf.transport.http.AbstractHTTPDestination$1@1e5d007,
> org.apache.cx
> f.async.post.response.dispatch=true,
> org.apache.cxf.transport.Destination=org.apache.cxf.transport.http_jetty.JettyHTTPD
> estination@1509443,
> org.apache.cxf.message.MessageFIXED_PARAMETER_ORDER=false, HTTP.REQUEST=POST
> /tracker HTTP/1.1
> Content-Type: text/xml; charset=UTF-8
> SOAPAction: ""
> Accept: *
> Cache-Control: no-cache
> Pragma: no-cache
> User-Agent: Java/1.6.0_07
> Host: localhost:9000
> Connection: keep-alive
> Content-Length: 359
>
> , HTTP.CONTEXT=ServletContext@135c7b0{/,null}, Content-Type=text/xml;
> charset=UTF-8, Accept=*, org.apache.cxf.headers.He
> ader.list=[], org.apache.cxf.message.Message.PATH_INFO=/tracker,
> org.apache.cxf.message.Message.BASE_PATH=/tracker} Body
> Type:org.apache.cxf.message.MessageContentsList
> Body:com.xpectis.service.tracker.InputTrackParcel@72cbb9
> 43124656 [btpool0-1] INFO  com.xpectis.service.common.impl.SaveServiceImpl
> - Parcel name : null
> 43124656 [btpool0-1] INFO  com.xpectis.service.common.impl.SaveServiceImpl
> - Parcel dest : null
> 43124656 [btpool0-1] INFO  com.xpectis.service.common.impl.SaveServiceImpl
> - Parcel orig : null
> 43124656 [btpool0-1] INFO  com.xpectis.service.common.impl.SaveServiceImpl
> - Parcel date : null
>
> Charles Moulliard
>
> -----
> Enterprise Architect
>
> Xpectis
> 12, route d'Esch
> L-1470 Luxembourg
>
> Phone +352 25 10 70 470
> Mobile +352 621 45 36 22
>
> e-mail : [hidden email]
> web site :  www.xpectis.com www.xpectis.com
> My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/ 
>