I want to take the values from the URL and perform a currency conversion based on them. EG-
I want to receive URL’s as:
http://www.mysite.com/conv/?amnt=7.15&from=GBP&to=USD
The returned results will then be in XML format.
My question is – how can I read those values, check for particular errors, perform the convert function and finally output the XML response using a RESTful interface?
Obviously, I’m not looking for the code to be written for me, I just need the logic explained to me and how can I can go about building this (I’m very new to this so forgive the vagueness)
Any help is much appreciated! Thanks
After much research and many questions I’ve nearly finished building this 🙂
Here’s how I did it in pseudo-code: