Well, I thought I did, but not sure anymore -- I'm using a feature class
(extends org.apache.cxf.feature.AbstractFeature, and in its
initializeProvider(InterceptorProvider provider, Bus bus) method, I have the
following statement:

provider.getInInterceptors().add(new SAAJInInterceptor());
System.out.println(provider.getInInterceptors());

The console output from the println is as follows (newlines inserted for
readability):

[org.apache.cxf.jaxws.handler.logical.logicalhandlerinintercep...@74b024,
org.apache.cxf.jaxws.interceptors.wrapperclassinintercep...@d8431c,
org.apache.cxf.jaxws.interceptors.holderinintercep...@1e14f0,
org.apache.cxf.jaxws.handler.soap.soaphandlerintercep...@f0a3e8,
org.apache.cxf.jaxws.interceptors.swainintercep...@98dd08,
com.amberpoint.nanoagent.webservices.cxf.jaxws.amberpointreceiveinintercep...@1d74c03,
com.amberpoint.nanoagent.webservices.cxf.jaxws.amberpointobserverinintercep...@1bf9980]

The last 2 interceptors are mine, but I don't see the SAAJInInterceptor on
the list

FWIW, I'm using the hello_world_soap12 sample for my tests

--

Roy



dkulp wrote:
> 
> 
> I hate to ask the obvious, but have you configued the SAAJInInterceptor
> onto 
> the chain as well?    Be default, we don't put the SAAJInInterceptor on
> the 
> chain as we normally don't need it.
> 
> Dan
> 
> 
> On Fri April 3 2009 3:28:57 pm rkiesler wrote:
>> I have a simple interceptor extending from AbstractPhaseInterceptor and
>> the
>> following constructor code:
>>
>> super(Phase.PRE_PROTOCOL);
>> addAfter("org.apache.cxf.binding.soap.saaj.SAAJInInterceptor");
>>
>> In my handleMessage implementation, I am calling
>> message.getContent(SOAPMessage.class) as suggested by Dan in his response
>> to
>> http://www.nabble.com/Message.getContent(---)-options-for-interceptors-tt15
>>133865.html#a15133865 Message.getContent(---)-options-for-interceptors ,
yet
>> I always get a NULL back.
>>
>> Any insights as to what I might be missing or doing wrong?
>>
>> --
>>
>> Roy
> 
> -- 
> Daniel Kulp
> [email protected]
> http://www.dankulp.com/blog
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Interceptor-fails-to-obtain-a-SOAPMessage-tp22874218p22878790.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to