Writing a REST Web Service and Client With Zend_Controller

April 2nd, 2009

so here’s my makeup video for last week’s absence. It’s a little on the long end (nearing 40 mintues), however in my defense, I’m trying to cover a lot of ground. The video covers how you can build a very basic JSON web service with some private key authentication. I think that I muddled through the description, so I invite you to look at the Wikipedia entry on private / public key cryptography.

I start by producing a simple Business Object for countries, which then becomes a web service. With some credentials for authentication stored in Zend_Config_Ini, I go through the motions of writing a wrapper around Zend_HttpClient for handling requests with our home-grown country list web service. This approach was adapted from a web service I’ve been working on for a client recently, that I’ve found light and easy to write for RESTful calls. Following along with the source code might also be helpful. Grab yourself a copy of the source code here.

 

Making JSON Objects from Zend_Controllers (Using JQuery)

February 18th, 2009

I started this video thinking it would be short and it ended up close to 30 minutes. If you find these videos too long, please let me know and I’ll break them up.

In my own defense, this video covers a lot of ground. I introduce JQuery and immediately put it to work for sending and receiving JSON requests to our Zend_Controller. The JSON is automatically generated from a set of PHP classes in a PHP array, thanks to Zend_Json.

also, download the project file for this episode.

 
Desktop RSS feed iPhone + iPod