you can generate a HTML report in your SmooksAction, that shows structure of your POJO with values. This is done by an additional property called "reportPath".
... <action class="org.jboss.soa.esb.actions.smooks.SmooksAction" name="xml2pojosample"> <property name="smooksConfig" value=".../xml2pojo.xml"/> <property name="resultType" value="JAVA"/> <property name="javaResultBeanId" value="blahblah"/> <property name="reportPath" value="/temp/reports/xml2bean.html"/> </action> ...
Thanks for your reply.
I did generate the report. But how do I interpret it??
In result it is showing
This Smooks Filtering operation produced a JavaResult. The following is an XML serialization of the JavaResult bean Map entries.
Does this mean the conversion from XML to POJO is successful??
At least some kind of values were binded to POJO. The result is the binding you configured in your SmooksTransformation. Whether this is what you really wanted to bind, depends on your SmooksTransformation Logic.
Yes this is what I wanted to achieve.
Thanks for your help, it really helped.