1.

Record Nr.

UNINA9910456117803321

Autore

Abeysinghe Samisa

Titolo

RESTful PHP web services [[electronic resource] ] : learn the basic architectural concepts and steps through examples of consuming and creating RESTful web services in PHP / / Samisa Abeysinghe

Pubbl/distr/stampa

Birmington, U.K., : Packt Publishing Ltd., c2008

ISBN

9786611886998

1-281-88699-8

1-84719-553-9

Descrizione fisica

1 online resource (220 p.)

Collana

From technologies to solutions

Disciplina

006.76

Soggetti

PHP (Computer program language)

Web services

Web servers - Computer programs

Electronic books.

Lingua di pubblicazione

Inglese

Formato

Materiale a stampa

Livello bibliografico

Monografia

Note generali

Includes index.

Nota di bibliografia

Includes bibliographical references and index.

Nota di contenuto

Cover; Table of Contents; Preface; Chapter 1: Introduction to REST; Programmable Web; HTTP and Web Services; What is REST?; HTTP Methods; The Need for RESTFul Web Services; REST Tools and Frameworks in PHP; XML Parsers; Tools for Accessing Services; Providing Services; PHP REST Frameworks; Tonic; Konstrukt; Zend Framework; WSO2 WSF/PHP; Madeam; dbscript; What Framework to Use?; Summary; Chapter 2: REST with PHP - A First Look; HTTP with PHP; CURL; HTTP GET; HTTP POST; HTTP PUT; HTTP DELETE; Building the Request with XML Tools; SimpleXML; DOM; Processing the Response; SimpleXML; DOM

Consuming FlickrPhoto Search; Photo Search with Information; Summary; Chapter 3: REST in Real World; Types of Services Available; Consuming Real World Services; Cresting our Utility Code - RESTUtil.php; Consuming an RSS Feed - BBC News Feed; BBC News Feed with Yahoo News Search; Yahoo Maps and Local Search; Earthquakes and Yahoo Maps; Mashups; Summary; Chapter 4: Resource Oriented Services; Designing Services; Simplified Library System; Resource



Design; PUT vs POST; URI Design; URI and HTTP Verb Mapping; System Implementation; Library Database; Web Page from Data; Retrieve Operation

Create OperationHandling Multiple Path Parameters; Summary; Chapter 5: Resource-Oriented Clients; Designing Clients; Resource Design; System Implementation; Retrieving Resource Information; Creating Resources; Deleting Resources; Putting it All Together; Implementing a Form-based Application; Summary; Chapter 6: Resource-Oriented Clients and Services with Zend Framework; Installing Zend Framework; Services with Zend_Rest_Server; Clients with Zend_Rest_Client; Library System with Zend REST classes; Library Service; Controllers for Book and Member Resources; Models for Book and Member Resources

Application Configuration and InitializationBook Controller; Member Controller; Library Clients; List Books with GET; Add a Book with POST; List Members with GET; Add a Member with POST; Complete Client Application Controller; Summary; Chapter 7: Debugging REST Web Services; Message Tracing; Errors in Building XML; Errors in Parsing XML; Best Practices; Summary; Appendix A: WSO2 Web Services Framework for PHP; Installing WSF/PHP; Implementing Services; Implementing Clients; SOAP Service and Client; Summary; Appendix B: RESTClient class; get Method; post Method; put Method; delete Method

Complete RESTClient Classget Example; post Example; Yahoo Search Client Example; Summary; Index

Sommario/riassunto

Learn the basic architectural concepts and step through examples of consuming and creating RESTful web services in PHP