将平面模式映射到重复模式

Mapping a Flat Schema to a Repeating Schema

Biztalk Map

大家好,我是 BizTalk 的新手。我确实在源模式中有一条记录。

<?xml version="1.0" encoding="utf-8"?>
    <LogEntryResponse xmlns="...">
      <LogEntryResult>
        <TxId>string1</TxId>
        <ServiceName>string2</ServiceName>
        <Identifier>string3</Identifier>
        <Amount>string4</Amount>
        <Status>string5</Status>
        <Detail>string6</Detail>
      </LogEntryResult>
    </LogEntryResponse>

我想使用每个元素在目标模式中创建一个单独的记录,如下所示:

<?xml version="1.0" encoding="UTF-8"?>
      <ns1:processRequestResponse>
         <return>
            <name>string1</name>
            <value>string1</value>
         </return>
         <return>
            <name>string2</name>
            <value>string2</value>
         </return>
         <return>
            <name>string3</name>
            <value>string3</value>
         </return>
      </ns1:processRequestResponse>
</ns0:Envelope>

我尝试了很多方法,但很明显我做错了什么。我希望有人能指出我正确的方向。

应该很简单

您所要做的就是 link TxId、ServiceName、Identifier 等,全部发送到 Looping Functoid。然后 link 从 Looping Functoid 到 Return.

然后您可以 link 将每个单独的字段设置为 Value 并使用 String Concatenate 来设置每个 Name 字段。