Acumatica web服务API登录失败

Acumatica web服务API登录失败,acumatica,Acumatica,当我尝试使用Acumatica web服务API时,我遇到了以下异常。任何帮助都将不胜感激 System.Web.Services.Protocols.SoapException: The request element <Login xmlns='http://www.acumatica.com/typed/'> was not recognized. at System.Web.Services.Protocols.Soap11ServerProtocolHelper.Rout

当我尝试使用Acumatica web服务API时,我遇到了以下异常。任何帮助都将不胜感激

System.Web.Services.Protocols.SoapException: 
The request element <Login xmlns='http://www.acumatica.com/typed/'> was not recognized. at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
System.Web.Services.Protocols.SoapException:
无法识别请求元素。在System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouterRequest()中

您能用您的登录代码样本更新此信息吗注意:用虚拟数据替换用户名和密码

了解您用来访问web服务的语言(C#php等)也会非常有用

它应该是这样的(假设您使用的是C#)


您是否已在acumatica中生成web服务url?您正在尝试使用哪个web服务?您是如何获得URL和客户端代码的?
try
        {
            LoginResult loginResult = context.Login("username@yourcompany", "yourpassword");
            if (loginResult.Code != ErrorCode.OK)
            {
                throw new Exception(loginResult.Message);
            }
        }
        catch (Exception ex)
        {
            Console.WriteLine(ex.Message);
            Console.ReadLine();
            return;
        }