Magento SOAP 2 API Fatal error: no login procedure

I get: Fatal error: the login procedure is missing in /chroot/home/mystore/mystore.com/html/lib/Zend/Soap/Server.php on line 832

Here the error comes from

$soap = $this->_getSoap(); ob_start(); if($setRequestException instanceof Exception) { // Send SOAP fault message if we've catched exception $soap->fault("Sender", $setRequestException->getMessage()); } else { try { $soap->handle($request); } catch (Exception $e) { $fault = $this->fault($e); $soap->fault($fault->faultcode, $fault->faultstring); 

Any ideas on how to fix the error?

+3
source share
2 answers


I had the same problem and decided to fix it to go to the System / Configuration / Magento Core API and set the WS-I Compliance to No.

I work with a WebService that consumes the Magento V2 API, I donโ€™t remember if I create a web link using this value as โ€œYesโ€; I am working with WS C # using VS 2010.

+9
source

I had a similar problem and did not want to change the version of the API. Removing the WSDL cache helped me.

Run this to get the WSDL cache folder:

 php -i | grep soap 

As a result, you can see that the WDSL cache is enabled and stored in / tmp:

 soap soap.wsdl_cache => 1 => 1 soap.wsdl_cache_dir => /tmp => /tmp soap.wsdl_cache_enabled => 1 => 1 soap.wsdl_cache_limit => 5 => 5 soap.wsdl_cache_ttl => 86400 => 86400 

Delete the cache and run it again:

 sudo rm -rf /tmp/* 

I found the key in this article - http://artur.ejsmont.org/blog/content/php-soap-error-procedure-xxx-not-present

+4
source

Source: https://habr.com/ru/post/1244560/


All Articles