News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Chris Hartjes' Blog:
Using CakePHP's Native Web Service Support
November 29, 2006 @ 15:33:00

On reading a message on the CakePHP mailing list about the web services built into the framework, Chris Hartjes decided to embark on his own look at what functionality the framework offers and how easy it is to use.

Might I add that until I tried this, I had never built a web service with CakePHP before. I found that by turning on the debug mode and actually following the instructions that were in the error messages (best undocumented feature of CakePHP if you ask me) I was able to build.

His code, while it worked, was one-upped by another's submitted to the mailing list (Samuel DeVore) so he's included that code in his example rather than the original. His example makes a TestController, an XmlComponent, and an XmlHelper to vary the output from a normal HTML to an XML format based on if "xml" is included in the path of the location.

0 comments voice your opinion now!
cakephp framework native web service support tutorial cakephp framework native web service support tutorial


blog comments powered by Disqus

Similar Posts

Fabien Potencier's Blog: Create your own framework... on top of the Symfony2 Components (part 8)

IBM developerWorks: Understanding the Zend Framework, Part 3: The feeds

Builder.au: Dynamic XML document construction with the PHP DOM

ThinkPHP Blog: Developing desktop applications by using web technologies

PHPMaster.com: Subtype Polymorphism - Swapping Implementation at Runtime


Community Events

Don't see your event here?
Let us know!


series laravel5 community library list api introduction release version voicesoftheelephpant framework podcast interview extension opinion language unittest laravel wordpress php7

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework