Book description
Whether you’re sharing data between two internal systems or building an API so users can access their data, this practical book provides everything you need to build web service APIs with PHP. Author Lorna Jane Mitchell uses code samples, real-world examples, and advice based on her extensive experience to guide you through the process—from the underlying theory to methods for making your service robust.
PHP is ideally suited for both consuming and creating web services. You’ll learn how to use this language with JSON, XML, and other web service technologies.
- Explore HTTP, from the request/response cycle to its verbs, headers, and cookies
- Determine whether JSON or XML is the best data format for your application
- Get practical advice for working with RPC, SOAP, and RESTful services
- Use a variety of tools and techniques for debugging HTTP web services
- Choose the service that works best for your application, and learn how to make it robust
- Learn how to document your API—and how to design it to handle errors
Table of contents
- Preface
- 1. HTTP
- 2. HTTP Verbs
- 3. Headers
- 4. Cookies
- 5. JSON
- 6. XML
- 7. RPC and SOAP Services
- 8. REST
- 9. Debugging Web Services
- 10. Making Service Design Decisions
- 11. Building a Robust Service
- 12. Error Handling in APIs
- 13. Documentation
- A. A Guide to Common Status Codes
- B. Common HTTP Headers
- About the Author
- Colophon
- Copyright
Product information
- Title: PHP Web Services
- Author(s):
- Release date: April 2013
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781449356569
You might also like
book
Modern Software Engineering: Doing What Works to Build Better Software Faster
Improve Your Creativity, Effectiveness, and Ultimately, Your Code In Modern Software Engineering, continuous delivery pioneer David …
book
Unit Testing Principles, Practices, and Patterns
Unit Testing Principles, Patterns and Practices teaches you to design and write tests that target the …
book
Designing Data-Intensive Applications
Data is at the center of many challenges in system design today. Difficult issues need to …
book
Working Effectively with Legacy Code
This book provides programmers with the ability to cost effectively handlecommon legacy code problems without having …