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/log; | |
import ballerina/http; | |
import ballerina/math; | |
import ballerina/system; | |
import ballerina/io; | |
import ballerina/mysql; | |
import ballerina/sql; | |
import ballerina/config; | |
const string UUID = "UUID"; |
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
<property name="xmlFile" expression="get-property('registry','gov:/test.xml')" scope="default" type="OM"></property> | |
<log level="custom"> | |
<property name="Book_Name" expression="$ctx:xmlFile//book"></property> | |
</log> | |
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
<root> | |
<book>A Song of Ice and Fire</book> | |
<author>George R. R. Martin</author> | |
</root> | |
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
<script language="js" description="URL Encoding Script"> | |
mc.setProperty("ENCODED_URL", encodeURI(mc.getProperty('URL_TO_BE_ENCODED'))); | |
</scrpt> | |
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
<script language="js" description="Query Parameter Encoding Script"> | |
mc.setProperty("ENCODED_PARAMS", encodeURIComponent(mc.getProperty('QUERY_PARAMS'))); | |
</scrpt> | |
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
<property name="regProperty" expression="get-property('registry', 'gov:/data/xml/collectionx@abc')"/> | |
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
<property name="xmlfile" expression="get-property('registry', 'gov:/xml/body.xml')" type="OM" /> | |
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
<property name="xmlfile" expression="get-property('registry', 'gov:/xml/body.xml')" type="OM" /> | |
<enrich> | |
<source clone="true" xpath="get-property('xmlfile')" /> | |
<target type="body" /> | |
</enrich> | |
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="JsonSplitterBlog" | |
transports="https,http" | |
statistics="disable" | |
trace="disable" | |
startOnLoad="true"> | |
<target> | |
<inSequence> | |
<payloadFactory media-type="json"> |
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
{ | |
"users":[ | |
{"name":"X", "age":"10"}, | |
{"name":"Y", "age":"12"}, | |
{"name":"Z","age":"15"} | |
] | |
} |
NewerOlder