Hi

I am trying to create an interceptor that will trigger when someone
asks for the WSDL. I want to rewrite it based on some settings.
I thought an interceptor would be a good way of doing this. But my
interceptors only trigger on method calls. Even LoggingOutInterceptor
dosen't trigger on WSDL.

I am probably doing something wrong here.

my cxf.xml:
<beans xmlns="http://www.springframework.org/schema/beans";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
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-2.0.xsd";>

<!--    <bean id="logInbound"
class="org.apache.cxf.interceptor.LoggingInInterceptor" />-->
<!--    <bean id="logOutbound"
class="org.apache.cxf.interceptor.LoggingOutInterceptor" />-->
        <bean id="soapinterc" class="WSDLInterceptor" />

        <cxf:bus>
<!--            <cxf:inInterceptors>-->
<!--                            <ref bean="logInbound" />-->
<!--                            <ref bean="soapinterc" />-->
<!--            </cxf:inInterceptors>-->
                <cxf:outInterceptors>
<!--                    <list>-->
<!--                            <ref bean="logOutbound" />-->
                                <ref bean="soapinterc" />
<!--                    </list>-->
                </cxf:outInterceptors>
<!--            <cxf:inFaultInterceptors>-->
<!--                    <ref bean="logOutbound" />-->
<!--            </cxf:inFaultInterceptors>-->
        </cxf:bus>
</beans>


-- 
Idar

Reply via email to