User Guide > Tasks > Creating New PHP Projects > Creating a New Web Services Project

Creating a New Web Services Project

This procedure explains how to create a new Web Services project. This project is the server-side component of Zend Studio's Cloud Connected Mobile tool, and contains the back-end RESTful and RPC APIs to be consumed by your mobile project.

Note:

The Web Services project can also be created together with the client-side component in the New Cloud Connected Mobile Project wizard. For more information, Creating a New Cloud Connected Mobile Project.

 

 

Instructions on how to complete a procedure

To create a new web services project in Zend Studio:

  1. In Zend Studio, go to File | New | Web Services Project.
    -OR-
    In the PHP Explorer View, right-click and select New | Project | Web Services Project.
    The New RESTful API Project wizard is displayed.

  1. Name your new project.
  2. Select the file location of the new project.
  3. Select an existing deployment target for the new server project, or click Add Target to create a new target. For information on adding new targets, see Managing Targets.
  1. Click Next.
    The Templates dialog is displayed.

  1. From the Available Templates list, select a template for the new projects (Empty Server-Side Projects, Simple RESTful Service - see descriptions in dialog for more information on each template).
  1. Click Finish.
    Your new project is created, and is displayed in the PHP Explorer.

By default, the 'gateway.xml' file is opened and displayed in your editor. Use this editor to configure the Zend Server Gateway and to define the way HTTP requests are to be handled by mobile applications. For more information, see Configuring the Zend Server Gateway.

Note:

To deploy this project on a local Zend Server, you will need to configure your Apache:
1. In the 'Zend\Apache\conf\httpd.conf' file, set all 'AllowOverride None' to 'AllowOverride All'.
2. Restart your Apache.

 

 

Related Links

Related Links:

Cloud Connected Mobile

Creating a New Cloud Connected Mobile Project

Testing a New Cloud Connected Mobile Project

Creating Native Applications

Running Native Applications

 

 

©1999-2013 Zend Technologies LTD. All rights reserved.