Smooks Building Query - A new Service

Solution Unverified - Updated -


  • Smooks Transformation is used in an ESB service where it is trying to transform from an XML message to a Java object. The following is a sample XML message which it tries to transform into Java object of type SalaryPayroll .

Request XML payload.

<jesb:SalaryPayrollXML xmlns:soapenv="" xmlns:jesb="">
            <jesb:type xmlns:jesb="">
                    <jesb:DEBITPayee xmlns:jesb="">TEST_USER</jesb:DEBITPayee>
                    <jesb:DEBITBank xmlns:jesb="">TEST_BANK</jesb:DEBITBank>

The Smooks Transformation looks like this.

  <jb:bean beanId="customField" class="com.test.SalaryPayroll" createOnElement="SalaryPayrollXML/AccountDebit/customData">
    <jb:value data="/SalaryPayrollXML/AccountDebit/type/DEBITPayee" property="payee"/>
    <jb:value data="/SalaryPayrollXML/AccountDebit/type/DEBITBank" property="Bank"/>

But at the end of the transformation it appears that the values against one of the request XML elements (which came in as request message) , e.g. DEBITPayee are appearing as null . How to troubleshoot this kind of issue to find out the root cause?


  • Red Hat JBoss SOA Platform (SOA-P)
    • 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In