hola, tengo el siguiente codigo php:
<?php
$proxy = new SoapClient('http://paginaweb.com/api/v2_soap/?wsdl'); // TODO : change url
$sessionId = $proxy->login('id', 'password'); // TODO : change login and pwd if necessary
$result = $proxy->catalogCategoryTree($sessionId);
echo "<pre>";
print_r($result);
?>
y obtemenos la siguiente impresion por pantalla:
stdClass Object
(
[category_id] => 1
[parent_id] => 0
[name] => RaÃ*z
[position] => 1
[level] => 0
[children] => Array
(
[0] => stdClass Object
(
[category_id] => 2
[parent_id] => 1
[name] => Catalogo
[is_active] => 1
[position] => 1
[level] => 1
[children] => Array
(
[0] => stdClass Object
(
[category_id] => 3
[parent_id] => 2
[name] => Ofertas
[is_active] => 1
[position] => 1
[level] => 2
[children] => Array
(
)
)
[1] => stdClass Object
(
[category_id] => 4
[parent_id] => 2
[name] => Top Ventas
[is_active] => 1
[position] => 2
[level] => 2
[children] => Array
(
)
)
[2] => stdClass Object
(
[category_id] => 5
[parent_id] => 2
[name] => Shopping
[is_active] => 1
[position] => 3
[level] => 2
[children] => Array
(
)
)
[3] => stdClass Object
(
[category_id] => 6
[parent_id] => 2
[name] => BOTIQUÃN
[is_active] => 1
[position] => 4
[level] => 2
[children] => Array
(
[0] => stdClass Object
(
[category_id] => 17
[parent_id] => 6
[name] => Terapia frÃ*o/ Calor
[is_active] => 1
[position] => 1
[level] => 3
[children] => Array
(
)
)
)
)
[4] => stdClass Object
(
[category_id] => 7
[parent_id] => 2
[name] => BUCAL
[is_active] => 1
[position] => 5
[level] => 2
[children] => Array
(
[0] => stdClass Object
(
[category_id] => 40
[parent_id] => 7
[name] => Prótesis
[is_active] => 1
[position] => 8
[level] => 3
[children] => Array
(
)
)
)
)
La informacion que necesito obtener son las categorias y subcategorias de mi tienda, si alguien me puede echar una mano con esto mediante la API de Magento SOAP V2.