Created
June 9, 2018 03:49
-
-
Save chanakaudaya/c34bb115bc69c2f8b0f9121dd3a1c115 to your computer and use it in GitHub Desktop.
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> | |
<http method="POST" uri-template="http://localhost:9091/service2"/> | |
</endpoint> | |
</call> | |
<log level="full"> | |
<property name="STATUS" value="RESP-2"/> | |
</log> | |
<enrich> | |
<source type="body" clone="true"/> | |
<target type="property" property="response2"/> | |
</enrich> | |
<payloadFactory media-type="json"> | |
<format>{results: [result1:$1, result2:$2]}</format> | |
<args> | |
<arg xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:ns3="http://org.apache.synapse/xsd" evaluator="xml" expression="$ctx:response1"/> | |
<arg xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:ns3="http://org.apache.synapse/xsd" evaluator="xml" expression="$ctx:response2"/> | |
</args> | |
</payloadFactory> | |
<respond/> | |
</sequence> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment