I was working on one of the usecase in which we need to surround single quote(') around the fields in output file during write operation in file adapter. For example:
you can download the soa project from here click here
Well the main logic for this is in the nxsd schema file that file adapter creates. I created a simple soa application, and the composite and bpel looks like below
In the transformation, I simply mapped the input parameter of request to file adapter input parameter.
here is my nxsd schema file: