How to Create Web Services for Mobile App in Magento
Web services share information across networks using the Magento Core API. They give you the ability to grant permission to third-party applications to access your store data for the purpose of integration. Magento Open Source supports both SOAP and REST services. Following these steps to create Web Services in Magento to share information with mobile application:
Step 1: Create a Web Service Role
- On the Admin menu, select System > Web Services > SOAP/XML-RPC Roles.
- Click the Add New Role button.
- In the Role Information section, enter a Role Name such as “API.”
- In the panel on the left, select Role Resources. Then do one of the following:
- To enable full access, set Resource Access to “All.”
- To provide limited access to data, set Resource Access to “Custom.” Then, select the checkbox of each resource that is available to this role.
- By default, when a area is selected, full access is granted. However, you can specify the actions that a person is allowed to take. Specific types of access are listed under many of the resource links, so it is easy to determine exactly what a user is allowed to do with the resource.
- When complete, click the Save Role button.
Step 2: Create a Web Service User
- On the Admin menu, select System > Web Services > SOAP/XML-RPC-Users
- Click the Add New User button
- Complete the following fields:
- User Name
- First Name
- Last Name
- In the API Key field, type in a verification key, or password. This is the access credentials that third-party web services will use to access your Magento store.
- To confirm, re-enter the key in the API Key Confirmation field.
- In the panel on the left, select User Role. Then, select a role for the user.
- When complete, click the Save User button
Step 3: Add Custom Scripts to Your Store
A knowledge craver who always strive to be wiser everyday.