Biztalk 2010 X12 EDI 聚会

发布于 2024-10-17 06:34:49 字数 1021 浏览 3 评论 0原文

我正在尝试将一些 BizTalk 2006 R2 帮助程序代码转换为 BizTalk 2010,但遇到了一个特殊问题。我正在尝试对一个方法进行单元测试,该方法从 2006 R2 开始发生了重大 API 更改 -> 2010 年,当我尝试访问派对的批次时,我不断收到以下异常:

System.Data.SqlClient.SqlException: Could not find stored procedure 'edi_PartnerBatchScheduleSelect'.

代码:

[TestMethod()]
public void GetPartyBatchStatusTest()
{
    Assert.IsTrue(GetPartyBatchStatus("Party1"));
}

public bool GetPartyBatchStatus(string PartyName)
{
    if (string.IsNullOrEmpty(PartyName))
    {
        // Throw Exception
        throw new System.ArgumentException("Parameter PartyName cannot be null or empty in the GetPartyBatchStatus method.", "PartyName");
    }

    bool RetVal = false;

    Partner objPartner = new Partner(PartyName);

    if (objPartner.PartyId != -1)
    {
        foreach (IPartnerBatch batch in objPartner.Batches.Batches)
        {
            RetVal = batch.BatchingActivated;
        }
    }

    return RetVal;
}

对于此测试用例,我设置了 Party1 和 Party2 并在它们之间启动了批次。

I am trying to convert some BizTalk 2006 R2 helper code to BizTalk 2010 and I am running into a peculiar issue. I am trying to unit test a method that had a breaking API change from 2006 R2 -> 2010 and I keep getting the following exception when I try to access the batches of the party:

System.Data.SqlClient.SqlException: Could not find stored procedure 'edi_PartnerBatchScheduleSelect'.

Code:

[TestMethod()]
public void GetPartyBatchStatusTest()
{
    Assert.IsTrue(GetPartyBatchStatus("Party1"));
}

public bool GetPartyBatchStatus(string PartyName)
{
    if (string.IsNullOrEmpty(PartyName))
    {
        // Throw Exception
        throw new System.ArgumentException("Parameter PartyName cannot be null or empty in the GetPartyBatchStatus method.", "PartyName");
    }

    bool RetVal = false;

    Partner objPartner = new Partner(PartyName);

    if (objPartner.PartyId != -1)
    {
        foreach (IPartnerBatch batch in objPartner.Batches.Batches)
        {
            RetVal = batch.BatchingActivated;
        }
    }

    return RetVal;
}

For this test case, I have set up a Party1 and a Party2 and started a batch between them.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

秋意浓 2024-10-24 06:34:49

BizTalk 2010 中的参与方模型(又名贸易伙伴管理)与以前的版本相比发生了很大变化。因此,Microsoft 在 BizTalk 2010 安装程序中包含了一方迁移工具(请参阅 此处)。

很抱歉这么说,但是如果您有直接与 BizTalk SQL 工件交互的代码,那么它现在工作的可能性很小,因为整个模型已经改变。不过,如果不了解 DSSIBizTalkHelper 的实际用途,就很难确定这一点。

话虽如此,BizTalk 2010 中记录更完善的功能之一就是执行 X12 EDI。尽管没有 BizTalk 经验会很困难,但您可能需要查看 本演练用于在 BizTalk 中发送批量 X12 EDI 交换。他们还有其他一些有用的演练也围绕同一主题。

The Party model (aka Trading Partner Management) in BizTalk 2010 has changed considerably from previous versions. Because of this, Microsoft includes a Party Migration Tool as a part of the BizTalk 2010 installer (see here).

I'm sorry to say this, but if you had code that interacted with the BizTalk SQL artifacts directly, then there is very little chance that it will work now, since the entire model has changed. Without seeing what the DSSIBizTalkHelper actually does, though, it's tough to know that for sure.

That being said, one of the better-documented BizTalk 2010 features is doing X12 EDI. Though it will be difficult without prior BizTalk experience, you may want to check out this walkthrough for Sending Batched X12 EDI Interchanges in BizTalk. They have several other helpful walkthroughs there as well, around the same topic.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文