![]() |
Multi-Version Web Services - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Multi-Version Web Services (/showthread.php?tid=49416) |
Multi-Version Web Services - El Forum - 02-18-2012 [eluser]Kyle Johnson[/eluser] What's up everyone? I'm trying to set up a new version of some web services, but want to ensure that anyone using the previous version is still able to. Can anyone point me in the right direction? When I started the project I included the version in the uri segment, but now I'm not entirely sure how to call the function that is supposed to be for a different version. Code: public function RequestService() { The part I'm not sure about is how to make $server->handle() call the proper version of the function. Once the data gets passed to the function I have access to the data object, and can call different methods from within, but this means updating the WSDL with a new element for versioning. So if for example, the wsdl has a CreateRequest method I could do something like this: Code: public function CreateRequest($data) { Or is there a better way to facilitate this? |