Skip to end of metadata
Go to start of metadata

<ac:macro ac:name="unmigrated-inline-wiki-markup"><ac:plain-text-body><![CDATA[

<ac:macro ac:name="unmigrated-inline-wiki-markup"><ac:plain-text-body><![CDATA[

Zend Framework: Zend_Json_Server Component Proposal

Proposed Component Name Zend_Json_Server
Developer Notes
Proposers Lode Blomme
Zend Liaison TBD
Revision 1.0 - 7 December 2009: Initial Draft. (wiki revision: 8)

Table of Contents

1. Overview

Zend_Json_Server makes it easy to build a JSON-RPC server. This proposal is about extending this component to also support JSONP.

2. References

3. Component Requirements, Constraints, and Acceptance Criteria

  • This component will be ale to process JSON requests that have the request data in GET instead of POST.
  • This component will allow the client to provide the name of his callback method.

4. Dependencies on Other Framework Components

  • Zend_Json_Server

5. Theory of Operation

When a request is received by the Zend_Json_Server, it is checked for either being a JSON-RPC request or a JSONP request (request resides in POST or in GET). A JSONP request has an extra parameter, the name of the callback method. Once a JSONP request is processed the response data should be wrapped in a function call, calling the callback method.

6. Milestones / Tasks

  • Milestone 1: design notes will be published here
  • Milestone 2: Working prototype checked into the incubator supporting all use cases.
  • Milestone 3: Unit tests exist, work, and are checked into SVN.
  • Milestone 4: Initial documentation exists.

7. Class Index

  • Zend_Json_Server
  • Zend_Json_Server_Request
  • Zend_Json_Server_Smd

8. Use Cases

Zend_Json_Server should keep working as it does today. You create the server, and let it handle the request.

9. Class Skeletons



zend_json_server zend_json_server Delete
jsonp jsonp Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Feb 05, 2011

    <p> Archiving this proposal, feel free to recover it when you want to work on it again. For more details see <a href="">this email</a>.</p>