-
1. Re: Smooks transformations with Freemarker template do not work in SwitchYard 0.7 version
kcbabo Jan 25, 2013 8:11 PM (in response to ioanna_kaliarnta)Ioanna,
Thanks very much for bringing this to our attention. Would you mind sharing some form of this transformation with us? I would like to add it to a test in our test suite.
thanks,
keith
-
2. Re: Smooks transformations with Freemarker template do not work in SwitchYard 0.7 version
ioanna_kaliarnta Jan 28, 2013 7:18 AM (in response to kcbabo)Hi,
You can find attached the smooks transformations we are using and the Java objects on which they are applied.
In particular, the TSODATA java object (included in the commondatamodel.rar folder) is the input and output object of our services. The TSODataConfigSmooks.xml transforms the XML playload of the service to TSODATA java object, while the TSODATAReplyConfigSmooks.xml transforms the TSODATA java object to the xml output of the service.
The first transformation works properly. The second one that uses a Freemarker template producess the error.
Also, here is the trasnformations definition in switchyard.xml:
<transform:transform.smooks from="{http://www.openuri.org/}generatePrepaidOrderId" to="java:com.accenture.assets.sdp.commondatamodel.asynch.TSODATA" type="XML2JAVA" config="smooks/TSODataConfigSmooks.xml"/>
<transform:transform.smooks from="java:com.accenture.assets.sdp.commondatamodel.asynch.TSODATA" to="{http://www.openuri.org/}generatePrepaidOrderIdResponse" type="SMOOKS" config="smooks/TSODataReplyConfigSmooks.xml"/>
**generatePrepaidOrderId one of the operations where the trasnformations are applied.
Let me know in case you need any more information.
Thank you,
Ioanna
-
TSODataReplyConfigSmooks.xml 2.2 KB
-
TSODataConfigSmooks.xml 3.0 KB
-
commondatamodel.rar.zip 6.7 KB
-