Skip to content

Instantly share code, notes, and snippets.

<sequence xmlns="http://ws.apache.org/ns/synapse" name="resultadoCSVSequence">
<log level="custom">
<property name="sequence" value="fileWriteSequence"></property>
</log>
<property xmlns:ns2="http://org.apache.synapse/xsd" xmlns:ns="http://org.apache.synapse/xsd" name="transport.vfs.ReplyFileName" expression="fn:concat(fn:substring-after(get-property('MessageID'), 'urn:uuid:'), '.txt')" scope="transport"></property>
<property name="OUT_ONLY" value="true"></property>
<send>
<endpoint name="FileEpr">
<address uri="vfs:file:///Users/edgar/Documents/esb/csv/saida"></address>
</endpoint>
<sequence xmlns="http://ws.apache.org/ns/synapse" name="sendMailSequence">
<log level="custom">
<property name="sequence" value="sendMailSequence"></property>
</log>
<property name="messageType" value="text/html" scope="axis2"></property>
<property name="ContentType" value="text/html" scope="axis2"></property>
<property name="Subject" value="File Received" scope="transport"></property>
<property name="OUT_ONLY" value="true"></property>
<send>
<endpoint name="FileEpr">
@edgars
edgars / bruno.xml
Last active August 29, 2015 14:21
CSVProxy
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="CSVProxy"
transports="vfs"
statistics="disable"
trace="disable"
startOnLoad="true">
<target>
<inSequence>
<log level="full"/>
Cama Decoracao de cama e mesa
Moveis Moveis de alto padrao
Cervejas Cervejas Artesanais
Carnes Carnes de Alto Padrao
SELECT CategoryID, CategoryName, Description FROM northwind.Categories;
INSERT into Categories
(CategoryName,Description) values
(?,?);
http://www.webservicex.net/globalweather.asmx?WSDL
Nome : CurrencyConverterProxy
WSDL: http://www.webservicex.net/currencyconvertor.asmx?wsdl
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="CSVProxy"
transports="vfs"
statistics="disable"
trace="disable"
startOnLoad="true">
<target>
<inSequence>
<log level="full"/>
<api xmlns="http://ws.apache.org/ns/synapse" name="MV" context="/api/mv">
<resource methods="GET" uri-template="/category">
<inSequence>
<log level="full"></log>
<property name="NO_ENTITY_BODY" scope="axis2" action="remove"></property>
<payloadFactory media-type="xml">
<format>
<body></body>
</format>
<args></args>