接收消息 [英] Receiving messages
问题描述
我有一个指向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!
推荐答案
这篇关于接收消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!