top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How you can change Magento Core API settings?

+4 votes
876 views
How you can change Magento Core API settings?
posted Nov 4, 2015 by Vrije Mani Upadhyay

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

3 Answers

0 votes

To change Magento Core API settings, you have to

Go to Admin menu, choose System -> Configuration

Select Magento Core API on the left side of the Configuration Panel, under Services

Tap on to expand the General Settings section and you can

Type the name of the Default Response Charset that you want to use

Determine the Client Session Timeout in seconds

Click the Save Config button when complete

answer Nov 30, 2015 by Manikandan J
0 votes

The Magento Core API supports both SOAP and XML RPC protocols. The API is permission-based, and allows access to the Customer, Catalog, and Order modules of your store.

The WSDL (Web Services Description Language) definition that you create for your Magento Enterprise Edition API solution ism by default, WS-I compliant. This makes it possible to use tools that require a WS-I complaint WSDL definition for API integration. No additional settings are required. Use the following endpoint URL for all WSI-I APIs, and replace {site_url} with the store domain.

WS-I Endpoint URL

http://{site_url}/api/wsi_soap/?wsdl

To change the general settings:

By default, the API default character set is UTF-8, and the timeout for client sessions is 3600 seconds. You can change the default settings through the system configuration of the store.

  1. On the Admin menu, select System > Configuration.
  2. In the panel on the left, under Services, select Magento Core API. Then, click to expand the General Settings section. Then, do the following:
    Magento Core API General Settings
    a. Enter the name of the Default Response Charset that you want to use.
    b. Enter the length of the Client Session Timeout in seconds.
    c. To enable WS-I Compliance, select “Yes.”
    d. To enable the WSDL Cache, select “Yes.”
  3. When complete, click the Save Config button.
answer Nov 30, 2015 by Shivaranjini
0 votes

Every Magento installation has certain core configuration data already set. When you update those values from the administration interfaces, changes are saved mainly to core_config_data database table. It seems important and something that you shouldn’t touch, right? As always, there are times you will wish to get your hands on it. In some cases you will wish to chance settings directly from the code. This article demonstrates the proper way.

Let’s say we want to change “demo store notice” (on/off) – change value from 0 to 1 and vice versa.
All you need to do is open your database,
for example with phpmyadmin,
browse table “core_config_data“,
change the data you want and save it…

I’m just joking, that’s not the way.
Here it is, you can call it wherever in your code:

/*
*turns notice on
*/
Mage::getConfig()->saveConfig('design/head/demonotice', '1', 'default', 0);
/*
*turns notice off
*/
Mage::getConfig()->saveConfig('design/head/demonotice', '0', 'default', 0);
Code which does the magic:

class Mage_Core_Model_Config
{
    .
    .

    /**
     * Save config value to DB
     *
     * @param string $path
     * @param string $value
     * @param string $scope
     * @param int $scopeId
     * @return Mage_Core_Store_Config
     */
    public function saveConfig($path, $value, $scope = 'default', $scopeId = 0)
    {
        $resource = $this->getResourceModel();
        $resource->saveConfig(rtrim($path, '/'), $value, $scope, $scopeId);

        return $this;
    }

    .
    .
}
answer Aug 12, 2016 by Magento_ocodewire
...