【发布时间】:2015-08-06 17:10:41
【问题描述】:
我有一个使用合作伙伴网站 Web 服务创建案例的定制项目。它工作得很好,但是在我将我的 Acumatica 从版本 5.10.0537 升级到 5.20.0531 之后,它就停止了工作。最终,甚至合作伙伴网站也升级到相同的版本。它只是在一段时间后超时。
下面是自定义代码
// Use webservice to create a case
CaseAPI.Screen context = new CaseAPI.Screen();
context.CookieContainer = new System.Net.CookieContainer();
context.Url = "https://partner.acumatica.com/Soap/SP203000.asmx";
CaseAPI.LoginResult result = context.Login("usernam", "password***");
CaseAPI.Content schema = context.GetSchema();
schema.Attributes.Attribute.Commit = true;
var commands = new CaseAPI.Command[] {
new CaseAPI.Value { Value = "contract01", LinkedCommand = schema.Case.Contract},
new CaseAPI.Value { Value = "Medium", LinkedCommand = schema.Case.Priority},
new CaseAPI.Value { Value = "this is test sub", LinkedCommand = schema.Case.Subject },
new CaseAPI.Value { Value = "this is test descrip", LinkedCommand = schema.Details.Description },
new CaseAPI.Value { Value = "Product", LinkedCommand = schema.Attributes.Attribute},
new CaseAPI.Value { Value = "Acumatica ERP", LinkedCommand = schema.Attributes.Value, Commit = true},
new CaseAPI.Value { Value = "Product Version", LinkedCommand = schema.Attributes.Attribute},
new CaseAPI.Value { Value = "5.0", LinkedCommand = schema.Attributes.Value, Commit = true },
new CaseAPI.Value { Value = "Version and Build Number", LinkedCommand = schema.Attributes.Attribute},
new CaseAPI.Value { Value = "8768", LinkedCommand = schema.Attributes.Value, Commit = true },
new CaseAPI.Value { Value = "Acumatica Instance URL", LinkedCommand = schema.Attributes.Attribute},
new CaseAPI.Value { Value = "http://www.kdss.com", LinkedCommand = schema.Attributes.Value, Commit = true },
new CaseAPI.Value { Value = "Customer Site User Name (Support)", LinkedCommand = schema.Attributes.Attribute},
new CaseAPI.Value { Value = "myname", LinkedCommand = schema.Attributes.Value, Commit = true },
new CaseAPI.Value { Value = "Customer Site Password (Support)", LinkedCommand = schema.Attributes.Attribute},
new CaseAPI.Value { Value = "mypwd", LinkedCommand = schema.Attributes.Value, Commit = true },
schema.Actions.Submit,
};
context.Submit(commands.ToArray());
光标卡在上面代码的最后一行。它继续滚动,永远不会回来。终于超时了。有什么建议吗?
【问题讨论】:
-
信息这么少,很难帮到你。我们不知道您从哪个版本升级、进行了哪些自定义以及您看到的症状是什么。
-
更新了主要问题。
-
我建议您使用 Acumatica 开一个支持案例,他们会直接使用您的实例进行故障排除。
标签: acumatica