基于元素值的BizTalk 2010输出文件路由 [英] BizTalk 2010 Output File Routing Based on Element Value

查看:89
本文介绍了基于元素值的BizTalk 2010输出文件路由的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个XML到XML的映射,输出精美.问题是我们要基于进入地图的这一元素/字段来路由输出(有2个不同的值可以填充同一字段).

I have an XML to XML map which output beautifully. The issue is we want to route the output based on this one element/field coming into the map (there are 2 different values which can populate the same field).

问题在于该字段在输出中重复,因此无法在出站映射中提升该字段.如果将过滤器应用于发送端口",我们似乎只能在两个位置都将其输出.

The problem is the field repeats in the output so the field can't be promoted in the outbound map. We can only seem to get it to output in both locations if we apply a filter to the Send Ports.

在将源文件中的字段设置为Distinguished和Promoted之后,我尝试根据该字段定义变量.我尝试了自定义接收管道和发送管道:目前,我最近的管道正在输出到两个位置.

I have tried defining a variable based on the field after making the field in the source file both Distinguished and Promoted. I have tried custom receive pipelines as well as send pipelines: currently the closest I come is outputting to both locations.

我知道这对你们大多数人来说都是孩子的游戏,但我却受了自己的阻碍.任何帮助表示赞赏.

I know this is child's play for most of you but am stymied myself. Any assistance is appreciated.

推荐答案

具有内部使用的规范架构,该规范架构具有用于路由的元素作为升级属性.

Have a canonical schema that is used internally that has the element used for routing as a promoted property.

将收到的消息映射到规范架构.

Map the incoming message to the canonical schema.

让您的发送端口订阅规范架构上的提升属性.

Have your send ports subscribing to the promoted property on the canonical schema.

在每个发送端口上都有一个映射,该映射从规范架构映射到所需的传出架构.

Have a map on each of your send ports that maps from the canonical schema to the desired outgoing schema.

这篇关于基于元素值的BizTalk 2010输出文件路由的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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