我必须准备客户端应用程序(c#)来通过 AS2 发送 EDI 消息。老实说,我们的客户无法控制通信,只能看到正确发送的 EDI 消息。 我尝试了不同的解决方案和库来测试它,例如 http://www.edidev.com/example_edi_transmission.html,https://mattfrear.com/2010/07/13/send-as2-with-dotnet/和其他,但它们都不能与客户 AS2 提供商合作。我认为 AS 2 提供商的支持会对我有所帮助,但目前还不起作用。 我找到了一个测试 AS2 服务器,它满足了我进行测试的需求(设置与 AS2 提供商相同),但发送的请求未显示在请求列表中。我的制作要求::
到目前为止,我的消息不会抛出错误(但也不起作用),如下所示:
MIME-Version: 1.0
Date: Thu, 12 May 2016 09:40:14 -0060
Content-Type: application/pkcs7-mime; smime-type=enveloped-data; name=smime.p7m
Content-Disposition: attachment; filename=smime.p7m
Content-Transfer-Encoding: binary
Message-ID: [email protected]
AS2-Version: 1.0
AS2-To: xxxx
AS2-From: yyyyy
Disposition-Notification-To: <[email protected]>
xxxxxxxxxxxxxxxxxxxx signed and encrypted data xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
有人做过这样的沟通吗?有什么建议、库(开源)、需要指定的 mime 参数、文档吗?我在这方面浪费了大约一周的时间,但没有任何进展。我将不胜感激任何帮助:)
我根据 Matt Frear 的优秀博客文章创建了一个项目,并针对OpenAS2 v3.9.1进行了测试。我希望它对某人有帮助!