cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert 'SOAP-v2 API Magento Objects' into XML Values?

How to convert 'SOAP-v2 API Magento Objects' into XML Values?

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

 

How to convert into XML?