Running the example

Instructions:

Enter the preferred amount and press Execute. You will be able to check the returned rate in Mule ESB log file $MULE_HOME/logs/mule.log

Enter Amount: |  |

Response:

Additional Information

You can also consume this service by directly calling the HTTP endpoint:

1. Go to the following URI in your browser to send a loan request (there are some default request values built-in): http://localhost:12081
2. In the Mule log file, you should see the process execute and a response message such as the following from one of the banks: Returning Rate is: ABigBank, rate: 6.379575743481158
3. Now, modify the loan amount requested, and see different banks responding based on the amount: http://localhost:12081/?amount=100
4. Try different amounts (100, 10000, 20000). Also try invalid numbers to see the error handling in action

Complete documentation for this example can be found here.