2016-07-20 27 views
0

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> 

我已經嘗試了一些東西,但很明顯我做錯了什麼。我希望有人能指出我正確的方向。

回答

1

它應該很簡單。

您只需將TxId,ServiceName,Identifier等全部鏈接到循環Functoid。然後從循環Functoid鏈接返回。

然後您可以將每個單獨的字段鏈接到值並使用字符串連接來設置每個名稱字段。

+0

我覺得我欠你一個道歉:)。謝謝,它讓我更好地理解Mapping。 – Mabz

+0

@Mabz您可以通過點擊鏈接去命名並將源鏈接從「複製文本值」更改爲「複製名稱」來填充名稱字段, – Dijkgraaf