cancel
Showing results for 
Search instead for 
Did you mean: 

How to solve Magento 1.9 V2 Soap Uncaught SoapFault exception: got no XML document?

How to solve Magento 1.9 V2 Soap Uncaught SoapFault exception: got no XML document?

After configuration SOAP v2 for getting products info,

 

<?php
$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'));
var_dump($result->result);
?>

 

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

2 REPLIES 2

Re: How to solve Magento 1.9 V2 Soap Uncaught SoapFault exception: got no XML document?

Hi @Jeeva Rathinam

 

I understand the problem you are facing !

 

Kindly follow the below links and do the necessary changes - you will able to resolved your issue !

 

https://magento.stackexchange.com/questions/68338/fatal-error-uncaught-soapfault-exception-client-lo...

 

https://magento.stackexchange.com/questions/8187/fatal-error-uncaught-soapfault-exception-2-access-d...

 

Reference - https://stackoverflow.com/questions/2540438/how-to-get-rid-of-uncaught-soapfault-exception-client-lo...

 

 

Hope it helps !

if issue solved,Click Kudos & Accept as Solution

Re: How to solve Magento 1.9 V2 Soap Uncaught SoapFault exception: got no XML document?

@Manthan Dave   Can i get help with my code, i will try so many possibilities keep on getting an error.