Transformation configuration via Spring - 7.3

Talend ESB Service Developer Guide

Version
7.3
Language
English
Product
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
Module
Talend ESB
Talend Runtime
Content
Design and Development
Installation and Upgrade
Last publication date
2023-04-17

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>