I have the situation
<actions faultXsd="/fault.xsd" inXsd="/request.xsd" outXsd="/response.xsd"> ... <action class="org.jboss.soa.esb.actions.EJBProcessor" name="sofSeverExporterEJB"> <property name="ejb3" value="true" /> <property name="method" value="export" /> <property name="jndi-name" value="SofSeverExporter/remote" /> <property name="initial-context-factory" value="org.jnp.interfaces.NamingContextFactory" /> <property name="provider-url" value="localhost:1099" /> <property name="esb-out-var" value="org.jboss.soa.esb.message.defaultEntry" /> <property name="ejb-params"> <arg0 type="com.my.Branch">branch</arg0> </property> </action> <action class="org.jboss.soa.esb.actions.SystemPrintln" name="printEJBResult"> <property name="message" value="After call ejb" /> <property name="printfull" value="true" /> </action> <action class="org.jboss.soa.esb.actions.smooks.SmooksAction" name="responsetranformer"> <property name="smooksConfig" value="/META-INF/exportResponse.xml"/> <property name="resultType" value="STRING"/> </action>
<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd" xmlns:jb="http://www.milyn.org/xsd/smooks/javabean-1.1.xsd" xmlns:ftl="http://www.milyn.org/xsd/smooks/freemarker-1.1.xsd"> <ftl:freemarker applyOnElement="$document"> <ftl:template> <!-- <ser:exportResponse xmlns:ser="http://company.com.br/services"> <content>$document</content> </ser:exportResponse> --> </ftl:template> </ftl:freemarker> </smooks-resource-list>
Since the string isn't in the message body, could you create a custom action to process the string?