Transformation configuration via Spring
To add the transformation feature to the endpoint, the transformation feature could be used:
Spring configuration
<bean id="xsltFeature" class="org.talend.esb.policy.transformation.feature.TransformationFeature">
<property name="path" value="etc/requestTransformation.xsl"/>
<property name="appliesTo" value="provider"/>
<property name="message" value="request"/>
<property name="type" value="xslt"/>
</bean>
<jaxws:client id="libraryHttp" serviceName="library:LibraryProvider"
endpointName="library:LibraryHttpPort"
address="http://localhost:8080/tesb-library-tutorial/services/LibraryHttpPort"
serviceClass="org.talend.services.demos.library._1_0.Library">
<jaxws:features>
<ref bean="xsltFeature"/>
</jaxws:features>
</jaxws:client>