Magento API错误--- SoapHeaderException:过程'login'不存在

时间:2012-09-03 18:30:41

标签: soap

我迷路了。我甚至不知道从哪里开始。这是我得到的错误:

程序'login'不存在 描述:执行当前Web请求期间发生未处理的异常。请查看堆栈跟踪,以获取有关错误及其在代码中的起源位置的更多信息。

异常详细信息:System.Web.Services.Protocols.SoapHeaderException:过程'login'不存在

来源错误:

第375行:service.Url = account.APIURL; 第376行: 第377行:string sessionId = service.login(account.APIUser,account.APIPassword); 378行: 第379行:var orders = service.salesOrderList(sessionId,InitialiseSOAPOrderCriteria(account.TriggerOrderStatus));

源文件:c:\ inetpub \ wwwroot \ UAT.SFSystem \ Settings \ ChannelHeader.ascx.cs行:377

堆栈追踪:

[SoapHeaderException:过程'登录'不存在]    System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage消息,WebResponse响应,流responseStream,布尔asyncCall)+1772421    System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName,Object []参数)+345    C:\ Work \ WebCatch \ SF \ StoreFeeder \ Middlewares \ SFMWMagento \ Adapters.MagentoSOAP \ Web References \ MagentoSOAP \ Reference.cs:Adapters.MagentoSOAP.MagentoSOAP.MagentoService.login(String username,String apiKey)    C:\ inetpub \ wwwroot \ UAT.SFSystem \ Settings \ ChannelHeader.ascx.cs中的Settings_ChannelHeader.magentoTestConnection(String channelGuid):377    C:\ inetpub \ wwwroot \ UAT.SFSystem \ Settings \ ChannelHeader.ascx.cs中的Settings_ChannelHeader.btnTestConnection_Click(Object sender,EventArgs e):154    System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)+154    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,Boolean includeStagesAfterAsyncPoint)+3707

1 个答案:

答案 0 :(得分:0)

我在使用v2 magento api时遇到了同样的错误,但当我切换回magento的v1 soap api时问题解决了