我有一个自定义项目,使用合作伙伴网站webservice创建案例。它工作得很好但是在我将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());
光标刚停留在上面代码的最后一行。它继续滚动,永远不会回来。最后它超时了。有什么建议吗?
答案 0 :(得分:0)
夫妻劝告