Created
April 2, 2017 10:29
-
-
Save Asitha/1b24eee6a39e6d0012140f283735dcc4 to your computer and use it in GitHub Desktop.
StockDetailsApi with a blocking call to the back end which returns a 404 response
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
<api xmlns="http://ws.apache.org/ns/synapse" name="StockDetailsApi" context="/stock-details"> | |
<resource methods="GET" faultSequence="TestErrorHandlerSequence"> | |
<inSequence> | |
<log> | |
<property name="Log" value="stock details request recieved" /> | |
</log> | |
<header name="To" scope="default" value="http://localhost:8280/inventory-api" /> | |
<payloadFactory media-type="json"> | |
<format>{"Account": "2"}</format> | |
<args/> | |
</payloadFactory> | |
<call blocking="true"> | |
<endpoint> | |
<default trace="disable" format="rest"> | |
<suspendOnFailure> | |
<initialDuration>0</initialDuration> | |
<progressionFactor>1.0</progressionFactor> | |
<maximumDuration>0</maximumDuration> | |
</suspendOnFailure> | |
</default> | |
</endpoint> | |
</call> | |
<log level="full"> | |
<property name="Log" value="After calling inventory API" /> | |
</log> | |
<payloadFactory media-type="json"> | |
<format>$1</format> | |
<args> | |
<arg evaluator="json" expression="$" /> | |
</args> | |
</payloadFactory> | |
<respond /> | |
</inSequence> | |
</resource> | |
</api> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment