Objective: A Web application to list and create a new customer.
Difficulty: **
Preparation
Copy the file list_the_clients.php from Section 3.3 to a file named C-CRUD.php at the root of your Web server.
The addition of resource can be likened to an upgrade from an empty element.
But how do we retrieve an XML formatted as an empty client?
In the web service, there is a method to retrieve an empty XML. It is accessible via a URL formatted as follows: http://mystore.com/api/(resource name)?schema=blank
It is possible to replace the parameter scheme value "blank" with "synopsis" in order to gain more information about the resource fields.
As we saw in Section 3.3 (List customers) it is possible make an array of parameters for "get ", "resource," and "id." It is also possible to specify only one URL this way: