Skip to content

Instantly share code, notes, and snippets.

@vanjikumaran
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vanjikumaran/9597556 to your computer and use it in GitHub Desktop.
Save vanjikumaran/9597556 to your computer and use it in GitHub Desktop.
import io
pram ="""<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="vfs_{0}"
transports="https,http"
statistics="disable"
trace="disable"
startOnLoad="true">
<target>
<inSequence>
<log level="full"/>
<property name="transport.vfs.ReplyFileName"
expression="fn:concat(fn:substring-after(get-property('MessageID'), 'urn:uuid:'), '.xml')"
scope="transport"/>
<property name="OUT_ONLY" value="true" scope="default" type="STRING"/>
<send>
<endpoint>
<address uri="vfs:file:///home/vanji/Work/VFS/Out/client_{0}-test/"
format="pox"/>
</endpoint>
</send>
</inSequence>
</target>
<description/>
</proxy>"""
for i in range(1001, 1501):
with open('vfs_{0}.xml'.format(i),'w') as f:
f.write(str(pram.format(i)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment