2 Replies Latest reply on May 17, 2013 3:26 AM by arpit182030

    SwitchYard Smooks transformation

    arpit182030

      Hi , I am very new to Switchyard and even ESB.

       

      I want to develop a Service which expects a java object as an input and returns the XML (and viceversa) through SMOOKS transformation. Although the quickstarts provide a transformation example, I am still not clear with how to write the transformation code in my ServiceBean.

      It would be really great if someone could help me.

        • 1. Re: SwitchYard Smooks transformation
          kcbabo

          You don't write the transformation code directly in the service bean.  SwitchYard allows you to externalize the transformation logic from your service implementation.  You just need to declare the transformation in your switchyard.xml and the runtime will automatically resolve the required transformation.  You can see that in the transform-smooks example as there's no code in OrderServiceBean to handle the transformation directly.

          1 of 1 people found this helpful
          • 2. Re: SwitchYard Smooks transformation
            arpit182030

            Thanks Keith , Since its very new for me  , I have many more questions to follow