PHP Tutorial: A 'Zodiac' Web Service
Wednesday March 01st 2006
After a successful first foray into the world of web services, I thought it'd be helpful to publish a tutorial going through the, *ahem*, shamefully easy steps of the process. However I didn't simply slap together sloppy cookbook-esque PHP code, which is why I felt this tutorial might be particularly helpful. The web service will return a Zodiac sign based on a provided birthdate, and to accomplish this I first created a Zodiac class that could be harnessed for the purposes of the web service. Then I created the web service "server" to simply harness the methods available to the Zodiac class, and a "client" to invoke the "server's" method.
I've created the tutorial within my LibLab, so you'll have to go there to find the actual tutorial (I know that isn't the most user-friendly way to do this, but it was either this or duplicate the tutorial here. I didn't feel like doubly my work, and besides I want to see how "usable" this LibLab may become.)
So head on over to my LibLab, and find the link to the left titled "Web Services: Zodiac". So far I've only published the first part of the tutorial, which was how to set up the web service "server"; part 2 will follow shortly.
Update: Sorry, but shortly after building the libLab I had a major breakthrough and was able to reorganize the library of code into a functioning framework. So libLab is no more. I'll try to revive the documentation, and the tutorials.