You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by RockyKnowledge82 <ad...@tiscalinet.it> on 2011/10/20 13:41:44 UTC

Out Interceptor

Hi all,
I hava an apache camel's application in which I use a cxf client generate by
wsdl2java bat.
I use the LoggingOutInterceptor to intercpet the soap request and see it on
tomcat console.
I want to get soap request and save it on file. I have readed more and more
post on interceptor configuration, but I don't get the soap message.......

Can you help me???

Thanks in advance

RK

--
View this message in context: http://cxf.547215.n5.nabble.com/Out-Interceptor-tp4921186p4921186.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Out Interceptor

Posted by RockyKnowledge82 <ad...@tiscalinet.it>.
Hi Freeman,
I've looked the LoggingOutInterceptor. I duplicate all code of that in my
intercptor, but in this call

  String id = (String)message.getExchange().get(LoggingMessage.ID_KEY);
            if (id == null) {
                id = LoggingMessage.nextId();
                message.getExchange().put(LoggingMessage.ID_KEY, id);
            }

I have an Exception on LoggingMessag.ID_KEY (NoSuchField).
If I try to create LogginMessage buffer with ID by LoggingMessage.nextId(),
I've another Exception (NoSuchMethodError). 

RK 

--
View this message in context: http://cxf.547215.n5.nabble.com/Out-Interceptor-tp4921186p4921973.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Out Interceptor

Posted by Glen Mazza <gm...@talend.com>.
http://www.jroller.com/gmazza/entry/jaxwshandlers_to_cxfinterceptors may 
help you.

Glen

On 10/20/2011 08:39 AM, Freeman Fang wrote:
> Hi,
>
> You can write your own interceptor to do so, take a look at 
> LoggingOutInterceptor code as an example.
>
> Freeman
> On 2011-10-20, at 下午7:41, RockyKnowledge82 wrote:
>
>> Hi all,
>> I hava an apache camel's application in which I use a cxf client 
>> generate by
>> wsdl2java bat.
>> I use the LoggingOutInterceptor to intercpet the soap request and see 
>> it on
>> tomcat console.
>> I want to get soap request and save it on file. I have readed more 
>> and more
>> post on interceptor configuration, but I don't get the soap 
>> message.......
>>
>> Can you help me???
>>
>> Thanks in advance
>>
>> RK
>>
>> -- 
>> View this message in context: 
>> http://cxf.547215.n5.nabble.com/Out-Interceptor-tp4921186p4921186.html
>> Sent from the cxf-user mailing list archive at Nabble.com.
>
> ---------------------------------------------
> Freeman Fang
>
> FuseSource
> Email:ffang@fusesource.com
> Web: fusesource.com
> Twitter: freemanfang
> Blog: http://freemanfang.blogspot.com
>
>
>
>
>
>
>
>
>
>


-- 
Glen Mazza
Talend - http://www.talend.com/apache
Blog - http://www.jroller.com/gmazza
Twitter - glenmazza


Re: Out Interceptor

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

You can write your own interceptor to do so, take a look at  
LoggingOutInterceptor code as an example.

Freeman
On 2011-10-20, at 下午7:41, RockyKnowledge82 wrote:

> Hi all,
> I hava an apache camel's application in which I use a cxf client  
> generate by
> wsdl2java bat.
> I use the LoggingOutInterceptor to intercpet the soap request and  
> see it on
> tomcat console.
> I want to get soap request and save it on file. I have readed more  
> and more
> post on interceptor configuration, but I don't get the soap  
> message.......
>
> Can you help me???
>
> Thanks in advance
>
> RK
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/Out-Interceptor-tp4921186p4921186.html
> Sent from the cxf-user mailing list archive at Nabble.com.

---------------------------------------------
Freeman Fang

FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com