Notice: wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/vinova/blog.vinova.sg/wp-includes/functions.php on line 4161
How to Create Web Services for Mobile App in Magento – Vinova – Vibrant Innovators

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

  1. On the Admin menu, select System > Web Services > SOAP/XML-RPC Roles.
  2. Click the Add New Role button.
  3. In the Role Information section, enter a Role Name such as “API.”
  4. 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.
  1. When complete, click the Save Role button.

Step 2: Create a Web Service User

  1. On the Admin menu, select System > Web Services > SOAP/XML-RPC-Users
  2. Click the Add New User button
  3. Complete the following fields:
  • User Name
  • First Name
  • Last Name
  • Email
  1. 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.
    web service user
  2. To confirm, re-enter the key in the API Key Confirmation field.
  3. In the panel on the left, select User Role. Then, select a role for the user.
  4. When complete, click the Save User button

Step 3: Add Custom Scripts to Your Store

Some third-party web services rely on snippets of JavaScript code to gather data. Some web services require you to insert code in the HTML <head> section, while others require the code to be in the HTML footer, below the closing </body> tag.

How to Create Web Services for Mobile App in Magento

Rate this post