Hi,

Is it possible that somehow your beans.xml can't be picked up?
How you specify beans.xml in your application?

Freeman
On 2011-7-20, at 下午3:28, kris wrote:

Hi,

current beans.xml:
<beans xmlns="http://www.springframework.org/schema/beans";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:jaxws="http://cxf.apache.org/jaxws";
        xmlns:cxf="http://cxf.apache.org/core";
        xsi:schemaLocation="
http://cxf.apache.org/core
http://cxf.apache.org/schemas/core.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd";>
        <import resource="classpath:META-INF/cxf/cxf.xml" />
        <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
        <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
        <bean id="OwnInterceptor" class="pl.skoropada.OwnInterceptor" />
        <cxf:bus>
                <cxf:inInterceptors>
                        <ref bean="OwnInterceptor" />
                </cxf:inInterceptors>
        </cxf:bus>
</beans>



unfortunately it doesn't work..

in current interceptors flow i can't find OwnInterceptor

receive [AttachmentInInterceptor]
 post-stream [StaxInInterceptor]
read [WSDLGetInterceptor, ReadHeadersInterceptor, SoapActionInInterceptor,
StartBodyInterceptor]
 pre-protocol [MustUnderstandInterceptor]
post-protocol [CheckFaultInterceptor, JAXBAttachmentSchemaValidationHack]
 unmarshal [URIMappingInterceptor, DocLiteralInInterceptor,
SoapHeaderInterceptor]
 post-logical [WrapperClassInInterceptor]
 pre-invoke [SwAInInterceptor, HolderInInterceptor]


I spent half a day to try to resolve this problem-without any effect..

--
View this message in context: 
http://cxf.547215.n5.nabble.com/Add-custom-inceptor-through-configuration-tp4613763p4614990.html
Sent from the cxf-user mailing list archive at Nabble.com.

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

FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com









Reply via email to