This file contains hidden or 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="AggregateMessageProxy" | |
transports="http https" | |
startOnLoad="true"> | |
<description/> | |
<target> | |
<inSequence> | |
<property name="enclosing_element" scope="default"> | |
<Aggregated_Stations/> |
This file contains hidden or 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
<aggregate> | |
<correlateOn expression="xpath | json-path"/>? | |
<completeCondition [timeout="time-in-seconds"]> | |
<messageCount min="int-min" max="int-max"/>? | |
</completeCondition>? | |
<onComplete expression="xpath | json-path" [sequence="sequence-ref"]> | |
(mediator +)? | |
</onComplete> | |
</aggregate> |
This file contains hidden or 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
<enrich> | |
<source [clone=true|false] [type=custom|envelope|body|property|inline] xpath="" property="" /> | |
<target [action=replace|child|sibiling] [type=custom|envelope|body|property|inline] xpath="" property="" /> | |
</enrich> |
This file contains hidden or 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
<enrich> | |
<source [clone=true|false] [type=custom|envelope|body|property|inline] xpath|json-path ="" property="" /> | |
<target [action=replace|child|sibiling] [type=custom|envelope|body|property|inline] xpath|json-path="" property="" /> | |
</enrich> |
This file contains hidden or 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
<!-- Sample 01 --> | |
<enrich> | |
<source type="custom" xpath="json-eval($.SamplePayload)" clone="false"/> | |
<target action="replace" type="body"/> | |
</enrich> | |
<!-- Sample 02 --> | |
<property name="Greeting" value="Hello World"/> | |
<enrich> | |
<source type="property" clone="true" property="Greeting"/> |
This file contains hidden or 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
// Sample 01 | |
// Request 1 | |
{ | |
"SamplePayload": { | |
"SampleArray": [ | |
123.45 | |
] | |
} | |
} |
This file contains hidden or 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
private void button1_Click(object sender, EventArgs e) | |
{ | |
echoService.echoPortTypeClient client = new echoService.echoPortTypeClient("echoHttpSoap11Endpoint"); | |
CallProxyApplication.echoService.echoStringRequest echoStringRequest = new echoService.echoStringRequest(); | |
CallProxyApplication.echoService.echoStringResponse echoStringResponse = new echoService.echoStringResponse(); | |
echoStringRequest.@in = textBox1.Text; | |
try | |
{ | |
String response = client.echoString(echoStringRequest.@in); |
This file contains hidden or 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
<binding name="echoSecuredSoap11Binding1"> | |
<security defaultAlgorithmSuite="Basic256" authenticationMode="UserNameOverTransport" | |
requireDerivedKeys="true" securityHeaderLayout="Lax" includeTimestamp="true"> | |
<localClientSettings detectReplays="false"/> | |
<localServiceSettings detectReplays="false"/> | |
</security> | |
<textMessageEncoding messageVersion="Soap11"/> | |
<httpsTransport/> | |
</binding> |
This file contains hidden or 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
private void button2_Click(object sender, EventArgs e) | |
{ | |
echoSecured.echoSecuredPortTypeClient client = new echoSecured.echoSecuredPortTypeClient("echoSecuredHttpsSoap11Endpoint"); | |
CallProxyApplication.echoSecured.echoStringRequest echoStringRequest = new echoSecured.echoStringRequest(); | |
CallProxyApplication.echoSecured.echoStringResponse echoStringResponse = new echoSecured.echoStringResponse(); | |
client.ClientCredentials.UserName.UserName = "admin"; | |
client.ClientCredentials.UserName.Password = "admin"; | |
echoStringRequest.@in = textBox2.Text; |
This file contains hidden or 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
<Student> | |
<Name>Lahiru</Name> | |
<Marks>78</Marks> | |
</Student> |
OlderNewer