BizTalk Server General - Mapping - create & copy GUID

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > November 2004 > Mapping - create & copy GUID





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Mapping - create & copy GUID
ABejan

2004-11-09, 2:48 am

Hi,

Inbound stucture:

<persons>
<person>
<name>Alex<name>
<address>111</address>
</person>
<person>
<name>Mary<name>
<address>222</address>
</person>
</persons>

Outbound structure:

<persons>
<names>
<name id="<GUID1>">Alex</name>
<name id="<GUID2>">Mary</name>
<names>
<addresses>
<address name_ref_id="<GUID1>">111</address>
<address name_ref_id="<GUID2>">222</address>
</addresses>
</persons>

Now in outbound, I create new Guid (with scripting functoid) in
names.name.id node and want to copy it to addresses.address.name_ref_id. Do
you know a solution about my problem ?

Thanks.
Alexander


Tan Bao Nguyen

2004-11-09, 8:46 pm

Alexander,

My suggestion is to use a two stages mapping. In the first map, add a
"guid" field in the destination to hold the guid value. Also map the name
and address from source fields to destination fields. In the second map,
use two looping functoids to map the name with the guid and then the
address with the guid. Please refer to the BizTalk documentation regarding
two stages mapping.

Regards,
Tan Nguyen
Microsoft BizTalk Server

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------[vbcol=seagreen]
cpmsftngxa10.phx.gbl!TK2MSFTNGXA06.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTNGP08
phx.gbl!tk2msftngp13.phx.gbl[vbcol=seagreen]
Do[vbcol=seagreen]

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com