首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >升级到5.2后,相同的自定义设置不起作用

升级到5.2后,相同的自定义设置不起作用
EN

Stack Overflow用户
提问于 2015-08-04 20:08:19
回答 1查看 130关注 0票数 0

我有一个定制项目,其中使用合作伙伴网站的网站服务来创建一个案例。它工作得很好,但在我将我的Acumatica从5.10.0537升级到5.20.0531之后,它停止了工作。最终,甚至合作伙伴的网站也会升级到相同的版本。它只是在一段时间后超时。

以下是自定义代码

代码语言:javascript
运行
AI代码解释
复制
        // 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());

光标停留在上述代码的最后一行。它继续滚动,再也不会回来了。最后它会超时。有什么建议吗?

EN

回答 1

Stack Overflow用户

发布于 2015-08-06 09:10:41

情侣建议

  1. 您是否在升级后更新了应用程序中的WSDL架构
  2. 尝试简化您的代码并移除例如所有属性,只保留"header“中的数据,这会起作用吗?
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31818365

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档