Skip to main content
added 3 characters in body
Source Link
Keyul Shah
  • 7.2k
  • 13
  • 38
  • 60

The API documentation describes some product_attribute methods that we can work with   

(  http://www.magentocommerce.com/api/soap/catalog/catalogProductAttribute/catalogProductAttribute.html ).

These method names contradict what is configured in Mage/Catalog/etc/api.xml.

Documentation shows:

product_attribute.info

While the api.xml shows:

catalog_product_attribute.info

I am making a basic call using:

$proxy = new SoapClient('http://www.example.com/api/?wsdl');
$session = $proxy->login($user, $pass);
$attribute = $proxy->call($session, 'product_attribute.info', $att_name);
// $attribute = $proxy->call($session, 'catalog_product_attribute.info', $att_name);

This results in the error, Invalid API path. If I change the API module/method to the commented line above, I get the same error.

What is the correct API v1 method to use to call product attribute methods?

The API documentation describes some product_attribute methods that we can work with  (  http://www.magentocommerce.com/api/soap/catalog/catalogProductAttribute/catalogProductAttribute.html ).

These method names contradict what is configured in Mage/Catalog/etc/api.xml.

Documentation shows:

product_attribute.info

While the api.xml shows:

catalog_product_attribute.info

I am making a basic call using:

$proxy = new SoapClient('http://www.example.com/api/?wsdl');
$session = $proxy->login($user, $pass);
$attribute = $proxy->call($session, 'product_attribute.info', $att_name);
// $attribute = $proxy->call($session, 'catalog_product_attribute.info', $att_name);

This results in the error, Invalid API path. If I change the API module/method to the commented line above, I get the same error.

What is the correct API v1 method to use to call product attribute methods?

The API documentation describes some product_attribute methods that we can work with 

(http://www.magentocommerce.com/api/soap/catalog/catalogProductAttribute/catalogProductAttribute.html ).

These method names contradict what is configured in Mage/Catalog/etc/api.xml.

Documentation shows:

product_attribute.info

While the api.xml shows:

catalog_product_attribute.info

I am making a basic call using:

$proxy = new SoapClient('http://www.example.com/api/?wsdl');
$session = $proxy->login($user, $pass);
$attribute = $proxy->call($session, 'product_attribute.info', $att_name);
// $attribute = $proxy->call($session, 'catalog_product_attribute.info', $att_name);

This results in the error, Invalid API path. If I change the API module/method to the commented line above, I get the same error.

What is the correct API v1 method to use to call product attribute methods?

Source Link
pspahn
  • 4.7k
  • 3
  • 32
  • 58

API v1 - Invalid API path to documented module/method

The API documentation describes some product_attribute methods that we can work with ( http://www.magentocommerce.com/api/soap/catalog/catalogProductAttribute/catalogProductAttribute.html ).

These method names contradict what is configured in Mage/Catalog/etc/api.xml.

Documentation shows:

product_attribute.info

While the api.xml shows:

catalog_product_attribute.info

I am making a basic call using:

$proxy = new SoapClient('http://www.example.com/api/?wsdl');
$session = $proxy->login($user, $pass);
$attribute = $proxy->call($session, 'product_attribute.info', $att_name);
// $attribute = $proxy->call($session, 'catalog_product_attribute.info', $att_name);

This results in the error, Invalid API path. If I change the API module/method to the commented line above, I get the same error.

What is the correct API v1 method to use to call product attribute methods?