After configuration SOAP_v2 for getting products info,

Magento version :


$proxy = new SoapClient('abc.com/api/v2_soap/?wsdl');
$sessionId = $proxy->login((object)array('username' => 'bala', 'apiKey' => 'bala123'));
$result = $proxy->catalogProductInfo((object)array('sessionId' => $sessionId->result, 'productId' => '9699'));

And error is,

PHP Fatal error: Uncaught SoapFault exception: [Client] looks like we got no XML document in /home/abc/public_html/bala.php:3 Stack trace:

#0 /home/abc/public_html/bala.php(3): SoapClient->__call('login', Array) #1 {main} thrown in /home/abc/public_html/bala.php on line 3*

How can i solve this error?

1 Answer 1


Use SAOP UI to import your wsdl and see if some errors are returned (to valid if your wsdl format is correct).

Then, if not, call function login to get your sessionId, then call catalogProductInfo.

See if you get some errors (or warnings) and try to fix them.

You can aslo add debug on your code with try/catch for exemple :

    //your code
catch (exception $e) 

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.