Magento SOAP 2 API致命错误:过程';登录';不在场

Magento SOAP 2 API致命错误:过程';登录';不在场,soap,magento-1.7,Soap,Magento 1.7,我得到:致命错误:第832行的/chroot/home/mystore/mystore.com/html/lib/Zend/Soap/Server.php中不存在过程“login” 这就是错误的来源 $soap = $this->_getSoap(); ob_start(); if($setRequestException instanceof Exception) { // Send SOAP fault message if we've catched

我得到:致命错误:第832行的/chroot/home/mystore/mystore.com/html/lib/Zend/Soap/Server.php中不存在过程“login”

这就是错误的来源

$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);
关于如何修复错误有什么想法吗?


我也遇到了同样的问题,我所做的是转到System/Configuration/Magento Core API并将值WS-I Compliance设置为“否”。

我正在使用一个使用Magento V2 API的web服务,我不记得是否使用这个值生成web引用为“是”;我正在使用VS 2010与WS-C一起工作。

我遇到了类似的问题,我不想更改API版本。删除WSDL缓存对我有帮助

运行此命令以获取WSDL缓存文件夹:

php -i | grep soap
从结果中,您可以看到WDSL缓存已启用并存储在/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
删除缓存并再次运行:

sudo rm -rf /tmp/*

我在本文中找到了线索-

我在windows中使用wamp,如何清除soap缓存@托马斯德米塞克