The webservice is a method of communication between devices or computers that allows you to share your data with another application. Using the webservice, you can determine what they have access to, or not.  The following tutorial will guide you through steps required to setup the webservice within PrestaShop 1.5.

Setting up the Webservice in Prestashop 1.5

  1. To get to the Performance section of the Advanced Parameters for Prestashop, first login to the Administrator as an Administrator
  2. Hover over menu bar where it says ADVANCED PARAMETERS - click on SQL MANAGER when it appears in the drop-down menu.
  3. You will see something similar to this screenshot:


    prestashop15-webservice-main-3


    Click on the ADD NEW button to add a new key in order to add a new key.

  4. You will see the folllowing scrreen:


    prestashop15-web-service-add
    The fields present in creating the contact:

    Key - randomly generated code to represent the key.  The code is generated by clicking on the GENERATE button under the field

    Key description -  description of the generated key

    Status -
    allows you to decide if the web service is active or not

    Click on the GENERATE button to generate the key, then describe it in the Key description.  When the description is complete, check on the STATUS.
  5. The following section is called PERMISSIONS.  There are the actual data tables that are available for access in PrestaShop.  You will need to determine which ones can be accessed and the permissions allowed to access them.  

    prestashop15-webservice-shortlist


    The above screenshot shows a partial vile of the list.  Clicking on the checkbox closest to the resource name checks ALL of the checkboxes in the row.   Select the resources and the permissions that you wish to be available on your web service.

  6. Click on SAVE in the top right hand corner in order to save your entries.

Web service in Prestashop is extremely important when you have need to share data with another person or application that may or may not reside on your server.  Place careful thought when setting this service up as it opens up a possible security issue, and may impact performance on your server.  For more information on setting up Web Service, go to Understanding the Prerequisites for Web Services in PrestaShop 1.5.

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve our Help Center:
Email Address
Optional, but our team may contact you for more information.
Did you find this article helpful?

Comments

n/a Points
2014-04-16 9:10 am

At step 4, there is a field named "KEY". I can successfully generate key and my prestashop's store is work perfectly with webservice but I have one question for my knowledge. Prestashop generates the random key every time but prestashop follows which algorithm or any other function to generate this random key every time. Please share some more information regarding the genaration of this random generated key.

 

Thanks in advance.

7,094 Points
2014-04-16 9:46 am
Hello Darshan,

Thank you for your comment. Here is a link to the Official PrestaShop webservice documentation, where it provides detailed information on the service.

After looking through, it looks like they are using Md5 for the encryption; which is commonly used.

If you have any further questions, feel free to post them below.
Thank you,

-John-Paul
n/a Points
2014-04-17 1:02 am

Thanks John-Paul. 

We can also create our own (which must be 32 characters long). But it is not good practice to do that. Prestashop simply insert this 32 chzaracters long key in to database (table : ps_webservice_account) and check every time requested key with this entry.

Thanks again.

Post a Comment

Name:
Email Address:
Comment:
Are you a bot?
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.