$options = array(
'stream_context'=>stream_context_create(
array(
'ssl' => array(
'verify_peer'=> false,
'verify_peer_name' => false,
)
)
),
"trace" => 1,
"exception" => 0
);
$testClient = new SoapClient($apiHost.'/index.php/api/soap/?wsdl');
$session = $testClient->login($apiUser,$apiPass);
After this request I got the following error
Fatal error: Uncaught SoapFault exception: [HTTP] Internal Server Error
from phpinfo on host server I can see
Soap Client enabled
Soap Server enabled
Also I've tried with v2_soap, the result was the same.
I've compared Magento Core API configurations with another Magento instance where it works and they are same.
What else I check to fix this?
Best Answer
Wrap your script in try-catch block and catch
\SoapFault
exceptions, which are generated by\SoapClient
, then you should be able to see exception message: