When I try to connect to magenento api through soap with this code:
//soap call test
$client = new SoapClient('https://magentohost/api/soap/?wsdl');
// If somestuff requires API authentication,
// then get a session token
$session = $client->login('user', 'key');
$result = $client->call($session, 'catalog_product.info', '930569');
var_dump($result);
//If you don't need the session anymore
$client->endSession($session);
I get this error:
Got error 'PHP message: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from <URL> : Extra content at the end of the document
Everything is enable the user and role, I cannot figure out what is the problem.