Tuesday 8 March 2016

Replacing Transformation with Assign using ora:doXSLTransformForDoc


1. Create a new SOA project with a synchronous BPEL.







2. Modify the schema request and response with the elements Id, Name, Age and Country.




3. Drag and drop transform as show below.



4. Name it as Transform_Input_To_Output and take Source as inputVariable and Target as outputVariable.



5. Do the mapping as show below. Now deploy and test.



6. Now add the assign and pass

ora:doXSLTransformForDoc("xsl/Transformation_Input_To_Output.xsl",$inputVariable.payload)

to root element of outputVariable as show below.









7. Delete the transform because the assign which we have added will behave the same as transform.





8. Final project structure look like below.



9. Now deploy and test we will get the same result as before

Reason for using ora:doXSLTransformForDoc inside assign instead of Transform activity:

You can use the ora:doXSLTransformForDoc function to write the results of large XSLT/XQuery operations to a temporary file in a directory system. The document is then loaded from the temporary file when needed. This eliminates the need for caching an entire document as binary XML in memory.

Thank You!!!!

Happy Learning!!!!


No comments:

Post a Comment