Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
某些Acumatica实例的SOAP登录错误_Soap_Acumatica - Fatal编程技术网

某些Acumatica实例的SOAP登录错误

某些Acumatica实例的SOAP登录错误,soap,acumatica,Soap,Acumatica,您好,我有一个C#工具,可以将数据导入Acumatica中的一个自定义表单。它登录到URL并批量导入数据。它在大多数情况下工作正常,但我们遇到了一个无法访问其实例的客户端。我可以在浏览器中调用他们的asmx页面,一切看起来都很好,但当程序调用Login时,我们遇到了一个奇怪的错误 Exception thrown: 'System.Web.Services.Protocols.SoapException' in System.Web.Services.dll An unhandled exce

您好,我有一个C#工具,可以将数据导入Acumatica中的一个自定义表单。它登录到URL并批量导入数据。它在大多数情况下工作正常,但我们遇到了一个无法访问其实例的客户端。我可以在浏览器中调用他们的asmx页面,一切看起来都很好,但当程序调用Login时,我们遇到了一个奇怪的错误

 Exception thrown: 'System.Web.Services.Protocols.SoapException' in System.Web.Services.dll
An unhandled exception of type 'System.Web.Services.Protocols.SoapException' occurred in System.Web.Services.dll
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()
   at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
   at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)

您是否能够使用工具->Web服务查看该实例的服务及其wsdl?是的,看起来不错。
_itemsScreen = new VendorItem.Screen();
        _itemsScreen.Url = url + "/Soap/SW200014.asmx";
        _itemsScreen.EnableDecompression = true;
        _itemsScreen.CookieContainer = new System.Net.CookieContainer();
        _itemsScreen.Timeout = 3600000;
        _itemsScreen.Login(username, password);