I used the below code to get products details from a magento store from my localhost
$proxy = new SoapClient('http://domain.com/magento/index.php/api/soap/?wsdl');
$sessionId = $proxy->login('username', 'apikey');
$filters = array(
'sku' => array('like'=>'test%')
);
$products = $proxy->call($sessionId, 'product.list', array($filters));
var_dump($products);
It works on my localhost machine but not on server. But soap configuration is enabled in server. Below is the error message
" SOAP-ERROR: Parsing WSDL: Couldn't find <definitions> in "
I got corresponding xml file when I used the below URL http://domainname/shoponline/index.php/api/soap/?wsdl
I removed index.php but didn't get any result.
$proxy = new SoapClient('http://domain.com/magento/index.php/api/soap/?wsdl');
The above statement display the below error
Parsing WSDL: Couldn't find definitions in