Problem solved -- I was adding the SAAJInInterceptor out of order.

--
Roy


rkiesler wrote:
> 
> <p>Well, I thought I did, but not sure anymore -- I'm using a feature
> class (extends <code>org.apache.cxf.feature.AbstractFeature</code>, and in
> its <code>initializeProvider(InterceptorProvider provider, Bus bus)</code>
> method, I have the following statement:</p>
> <pre>provider.getInInterceptors().add(new SAAJInInterceptor());
> System.out.println(provider.getInInterceptors());</pre>
> <p>The console output from the <code>println<code> is as follows (newlines
> inserted for readability):</p>
> <pre>[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]</pre>
> <p>The last 2 interceptors are mine, but I don't see the SAAJInInterceptor
> on the list</p>
> <p>FWIW, I'm using the hello_world_soap12 sample for my tests</p>
> --<br />
> Roy<br />
> 
> 
> 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-tp22874218p22890223.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to