Hello,

I'm trying to enable WS-SecurityPolicy (username-token) using Spring
configuration in a java-first scenario. *The policy is enforced correctly*,
but it is not included in the generated WSDL (when I access it using ?wsdl).

This is how I define my jaxws endpoint:
____________________________________________

<import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-policy.xml" />

<jaxws:endpoint id="Service" implementor="my.company.ServiceImpl"
address="/service" >
    <jaxws:properties>
        <entry key="ws-security.callback-handler">
            <bean class="my.company.SimpleServerPasswordCallback"/>
        </entry>
        </jaxws:properties>
        <jaxws:features>
            <p:policies>
                <wsp:PolicyReference 
                    URI="classpath:/META-INF/ws-policy/usernameToken.xml" />
            </p:policies>
        </jaxws:features>
</jaxws:endpoint> 
____________________________________________

I'm using cxf 2.4.6 with ServiceMix 4.4.1 and Apache Camel 2.8.4.

Any ideas?

Thank you in advance,
Nerius.

--
View this message in context: 
http://cxf.547215.n5.nabble.com/WS-Policy-with-Spring-configuration-doesn-t-show-up-in-wsdl-tp5710372.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to