Objective: Using the file system as transport medium using VFS transport listener and sender.
- Enable the VFS transport. For details, see VFS Transport.
- Start the Axis2 server and deploy the
SimpleStockQuoteServiceif not already done
- Create three new directories in a test directory, for example, in, out, original in /home/user/test. Open ESB_HOME/repository/samples/synapse_sample_254.xml and edit the following values. Change transport.vfs.FileURI, transport.vfs.MoveAfterProcess, transport.vfs.MoveAfterFailure parameter values to the above in, original, original directories respectively. Change outSequence endpoint address URI to out directory with the prefix vfs:. Values you have to change are marked with
- Start the Synapse configuration numbered 254:
wso2esb-samples.sh -sn 254
ESB_HOME/repository/samples/resources/vfs/test.xmlto the directory given in
VFS transport listener will pick the file from from home/user/test/in directory and send it to the Axis2 service. The request XML file will be moved to original directory. The response from the Axis2 server will be saved to