5

In Magento1.9 - product collection by default return values as Magento Objects using soap v2, how can i change into XML,

<?php
ini_set('display_errors','On');
$proxy = new SoapClient('abc.com/api/v2_soap/?wsdl', array('trace' => 1));
$sessionId = $proxy->login((object)array('username' => 'abc', 'apiKey' => 'abc123'));
$result = $proxy->catalogProductInfo((object)array('sessionId' => $sessionId->result, 'productId' => '9700'));
var_dump($result->result);
?>
12

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.