4

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);
?>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.