This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<api xmlns="http://ws.apache.org/ns/synapse" name="EmailAPI" context="/voice"> | |
<resource methods="POST GET" uri-template="/details?email={email}"> | |
<inSequence> | |
<log level="full"> | |
<property name="EMAIL" expression="$url:email"/> | |
</log> | |
<respond/> | |
</inSequence> | |
</resource> | |
<resource methods="POST GET" uri-template="/phone/{number}"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<api xmlns="http://ws.apache.org/ns/synapse" name="AsterixAPI" context="/voice"> | |
<resource methods="POST GET" uri-template="/details*"> | |
<inSequence> | |
<log level="full"> | |
<property name="EMAIL" expression="$url:email"/> | |
<property name="PHONE" expression="$url:phone"/> | |
</log> | |
<respond/> | |
</inSequence> | |
</resource> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@App:name("ReceiveAndCount") | |
@App:description('Receive events via HTTP transport and view the output on the console') | |
@Source(type = 'http', | |
receiver.url='http://localhost:8006/productionStream', | |
basic.auth.enabled='false', | |
@map(type='json')) | |
define stream SweetProductionStream (name string, amount double); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@App:name("AlertsAndThresholds") | |
@App:description('Simulate a single event and receive alerts as e-mail when a predefined threshold value is exceeded') | |
define stream TransactionStream(creditCardNo string, country string, item string, transaction double); | |
@sink(type='email', | |
username ='siddhi.sample', | |
address ='<sending_email>', | |
password= '<email_password>', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?><sequence xmlns="http://ws.apache.org/ns/synapse" name="mashupSeq"> | |
<log level="full"> | |
<property name="STATUS" value="RESP-1"/> | |
</log> | |
<enrich> | |
<source type="body" clone="true"/> | |
<target type="property" property="response1"/> | |
</enrich> | |
<call> | |
<endpoint> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ballerina/http; | |
@http:ServiceConfig { | |
basePath: "/" | |
} | |
service<http:Service> hello bind {port:9090} { | |
@http:ResourceConfig { | |
path: "/service1", | |
methods: ["POST"] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ballerina/http; | |
@http:ServiceConfig { | |
basePath: "/" | |
} | |
service<http:Service> hello bind {port:9091} { | |
@http:ResourceConfig { | |
path: "/service2", | |
methods: ["POST"] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?><proxy xmlns="http://ws.apache.org/ns/synapse" name="vfsProxyS3" startOnLoad="true" statistics="disable" trace="disable" transports="vfs"> | |
<target> | |
<inSequence> | |
<log level="full"> | |
<property name="log" value="====VFS Proxy S3===="/> | |
</log> | |
<property expression="get-property('SYSTEM_TIME')" name="objectName"/> | |
<property name="contentType" value="text/plain"/> | |
<amazons3.init> | |
<accessKeyId>{wso2:vault-lookup('s3accesskey')}</accessKeyId> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<sequence name="PayloadFactorySOAP12Sequence" trace="disable" xmlns="http://ws.apache.org/ns/synapse"> | |
<payloadFactory media-type="xml"> | |
<format> | |
<soap:Envelope xmlns:ns="http://www.viewstar.com/webservices/2002/11" xmlns:soap="http://www.w3.org/2003/05/soap-envelope"> | |
<soap:Header/> | |
<soap:Body> | |
<ns:Login> | |
<ns:loginId>$1</ns:loginId> | |
<ns:password>$2</ns:password> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<sequence name="PayloadFactorySOAP11Sequence" trace="disable" xmlns="http://ws.apache.org/ns/synapse"> | |
<payloadFactory media-type="xml"> | |
<format> | |
<soap:Envelope xmlns:ns="http://www.viewstar.com/webservices/2002/11" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope"> | |
<soap:Header/> | |
<soap:Body> | |
<ns:Login> | |
<ns:loginId>$1</ns:loginId> | |
<ns:password>$2</ns:password> |
OlderNewer