 | News Feed |
Sections
Community Events
|
| feed this: |  |
C7Y: REST and Resource Handling with CakePHP
posted Thursday May 15, 2008 @ 12:04:26
voice your opinion now!
BY CHRIS CORNUTT
On the C7Y website, a new tutorial has been posted from Nate Abele (following his previous CakePHP-related article) covering the use of the framework to create a REST web service and manage resources inside of it.
We're going to take these concepts [from the previous article] further and add a new one: REST. In the course of this series so far, we've only been discussing how to use the Router to examine and act on different parts of a URL.
He gives a list of possible headers that could come from a client (like Accept-Charset or Content-Type) and how these can be directly pulled in to the CakePHP routing system. A few extra bits of code later and your app can be mapping requests directly to the controllers for the actions the user's requesting. All that's left is to serialize the results back into XML to echo out.
tagged with: cakephp tutorial resource rest handle webservice
IBM developerWorks: Build Web services with PHP in Eclipse
posted Wednesday May 14, 2008 @ 13:46:50
voice your opinion now!
BY CHRIS CORNUTT
The IBM developerWorks website has a new tutorial posted showing how to create a web service with the combination of PHP and the Eclipse IDE.
Learn how to build Web services in PHP using the PHP Development Tools plug-in in Eclipse Europa. Become familiar with the PDT project, and learn how to create and deploy useful PHP projects, learn about the philosophy behind contract-first development, and understand the basic parts that make up a Web Services Description Language (WSDL) file.
You'll have to register/sign in to get to it. They give an introduction to the PHP Development Tools for Eclipse, creating a WSDL file visually in the IDE and integrating it all to work with your Eclipse front-end.
tagged with: webservice eclipse tutorial ibm developerworks
Zend Developer Zone: The value of Web services for PHP
posted Tuesday March 11, 2008 @ 08:07:14
voice your opinion now!
BY CHRIS CORNUTT
Korynn Bohn has posted a new tutorial/article on the Zend Developer Zone website that talks about (and advocates for) web services.
Web services are the coolest technology I know of that ends up turning everyone off. I don't know about you, but when I go to a lecture on Web services, invariably tons of acronyms come out [...] and then I start to nod off and dream about a land where free Krispy Kreme donuts grow on trees.
He reframes the web services world away from the acronyms and strict standards to more towards using it as a method of communication between apps, letting them engage in some friendly conversation. He uses the rest of the tutorial showing how to create an RSS reader of sorts using dashes of PEAR, XML, C#, XSLT, Ajax and Flex.
tagged with: webservice flex rss xml rest soap client server tutorial
Hasin Hayder's Blog: WorldTimeEngine - How about making your own in PHP?
posted Monday March 10, 2008 @ 11:17:00
voice your opinion now!
BY CHRIS CORNUTT
Hasin Hayder has posted an example of a "world time search" he's worked up that uses the geonames.org and Yahoo! developer APIs to pin down the time at any given location.
I recently came by this site WorldTimeEngine where users can search the local time of any place using the name, street address or just latitude and longitude. Since that time I was thinking how easily you can make your own. As long there are some good people over there (For Geocoding API) - its a not a big deal, you know?
His script pulls the location of the place (latitude/longitude) from the Yahoo! geocoding API and passes that back into the geonames web service to get the local time. The result is an array with the lat/long, address you submitted and the time output in a standard string.
tagged with: world time engine example yahoo api webservice geonames
Andrew Johnstone's Blog: Soap, XmlRpc and Rest with the Zend Framework
posted Monday February 25, 2008 @ 11:07:00
voice your opinion now!
BY CHRIS CORNUTT
Andrew Johnstone has a new post today with a look at a project he'd worked on - an implementation of a web service with the Zend Framework functionality.
I was recently working on a project to expose our trading systems via XmlRpc, Rest and SOAP. It was quite an interesting project, which took two of us three weeks to develop (Amongst other things).
He talks about some of the issues they worked through (like the ZF's "not quite ready" in the web services department) and problems they found with how the web services functionality was implemented in the framework's components. They also came across two strange bugs - one with accepting raw input and the other with a wrong return type from a method call.
tagged with: zendframework soap xmlrpc rest webservice project
DevShed: Defining Some Custom PHP Functions with Yahoo Web Services
posted Tuesday February 05, 2008 @ 11:18:00
voice your opinion now!
BY CHRIS CORNUTT
DevShed continues their series looking at connecting a PHP5 script to the powerful Yahoo! search backend with part four of the series today. This part focuses on reworking some of the previous examples to make them more modular using custom defined functions.
Logically, these examples can be really useful for learning the basic concepts surrounding the use of these search services, but undoubtedly, it's necessary to modify and improve their source code to make it more compact and completely reusable.
They start the overhaul with the web search (complete with example results) then push on to the video and image searches and work them over the same way.
tagged with: webservice yahoo tutorial php5 search video image function
DevShed: Implementing Yahoo Image Search Web Service with PHP 5
posted Tuesday January 29, 2008 @ 13:05:08
voice your opinion now!
BY CHRIS CORNUTT
DevShed has posted the third part of their series looking at accessing the Yahoo! web services via PHP5 scripts. This time it's a focus on using the image search capabilities.
In this third chapter of the series, I'm going to continue exploring in detail other helpful web services offered by Yahoo!, such as those focusing on searching images and videos. Also, I will demonstrate how they can be queried directly from a basic PHP 5 application and process the corresponding search results by utilizing the same group of array handling functions that you saw in the previous article of the series.
Just like in previous articles of the series, they make a simple class that connect to the Yahoo! web services and request search details back about their queries (like "Madonna").
tagged with: php5 implement yahoo webservice image search
DevShed: Fetching Search Results as Serialized Arrays with Yahoo Web Services and PHP 5
posted Wednesday January 16, 2008 @ 07:51:00
voice your opinion now!
BY CHRIS CORNUTT
DevShed has continued their series looking at using the Yahoo! web services with PHP5 in part two - their look at returning the results of a query in serialized arrays.
I'll show you how to parse the results returned by a determined web search service using a few array PHP processing functions. [...] Let's learn how to fetch results returned by the different Yahoo! Search Web Services in the form of serialized PHP arrays
You'll probably want to check out part one of the series before forging on to this second installment - there's a lot of good introductory information in there. With all of that information ingested, you'll have no problem following along with this next part.
They show how to get the results back from a search in an XML format and how, with the simple addition of an optional "output" parameter, can get the same information back in something PHP can natively use (the arrays).
tagged with: yahoo webservice search result serialize array native php5 tutorial yahoo webservice search result serialize array native php5 tutorial
|