How to structure files in Webservice
i have been working on developing Webservice using Soap and Restful, in future there may be xmlrpc.I'm also providing versions for API.
I'm bit confused about how i should structure the files.
This is how i'm planning to do.
I have two pages soap.php and restful.php which accepts API request, it then route to separate files meant for soap and restful,
for example user_soap.php and user_restful.php
which then call base_class.php this class have all the base functions which process our request and gives response.
How should i keep track of versions,
Do i have to keep separate folder for each Versions. Could some suggest me a better method.
Thanks in advance