接收消息 [英] Receiving messages

查看:76
本文介绍了接收消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个指向FTP位置的接收端口。在此FTP位置,放置EDIFACT文件以及XML文件。这些文件没有扩展名。

我想做什么:如果EDIFACT文件到达,我想使用Covast EDI接收管道处理它,如果它是XML我想使用XmlReceive管道。


Hi,
 
I have a receive port that points to an FTP location. In this FTP location EDIFACT files as well as XML files are put. The files have no extension.

What I want to do: if an EDIFACT file arrives, I want to process it using the Covast EDI receive pipeline, if it's XML I want to use the XmlReceive pipeline.


我的想法:我有一个名为GXSReceivePort的接收端口,可以监听使用模式*。*到GXS FTP并通过管道传递。 然后我创建一个带有过滤器的发送端口,用于侦听GXSReceivePort和另一个仅提取的过滤器消息,如果它是EDIFACT,然后将其发送到本地EDIFACT文件夹。 接下来我创建一个带有过滤器的发送端口,用于侦听GXSReceivePort和一个仅提取的附加过滤器消息,如果它是XML,然后将其发送到本地XML文件夹。 但我不知道我可能会为此目的使用哪些额外的过滤条件。

如何我可以实现这样的目标吗?

谢谢!

My idea: I have a single receive port called GXSReceivePort that listens to GXS FTP with pattern *.* and pass through pipeline. Then I create a send port with filter that listens to the GXSReceivePort and an additional filter that only fetches the message if it's EDIFACT, and then send it to a local EDIFACT folder. Next I create a send port with filter that listens to the GXSReceivePort and an additional filter that only fetches the message if it's XML, and then send it to a local XML folder. But I don't know what extra filter criteria I might use for this purpose.

How could I achieve something like this?

Thanks!

推荐答案


我会说你的第一站应该试图分开文件(通过文件夹或文件名掩码,这会更容易维护。
I would say that your first stop should be trying to separate the files (by folders or filename mask, this would be way easier to maintain.


这篇关于接收消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆