Subject: Problems with mapping
Posted By: mauriciom Post Date: 1/12/2006 10:32:17 AM
Hi, I'm new in biztalk and I need to solve this problem.

I'm receiving messages like this

<ns0:SCADA_MEDICION punto_medicion="punto_medicion_0" />
    <ns0:cromatografia poder_calorifico="10.4" densidad="10.4" />
</ns0:SCADA_MEDICION>


Then I need to transform them to this one

<ns0:Medicion>
  <Header>
    <Punto_Medicion>Punto_Medicion_0</Punto_Medicion>
  </Header>
  <Tags>
    <Tag>
      <Description>poder_calorifico</Description>
      <Value>10.4</Value>
    </Tag>
    <Tag>
      <Description>densidad</Description>
      <Value>10.4</Value>
    </Tag>
  </Tags>
</ns0:Medicion>


Can I resolve the problem using schemas and maps? or I need to write some code?

Somebody can help me?

Thanks in advance.

Mauricio Bs. As - Argentina
Reply By: joefawcett Reply Date: 3/3/2006 10:32:17 AM
You just need to create two schemas, one for each message. You can then create a map that converts one to the other using the graphical map tool. The orchestration will just consist of a receive port, a transformation and a send port. No actual code needs to be hand written.

--

Joe (Microsoft MVP - XML)
Reply By: anuphshah Reply Date: 8/16/2006 6:47:38 AM
Hi Joe..
Can you please tell me how to incorporate this mapper in the Orchestration file between Send and Receive Ports???

Your quick reply will be really appreciated..

-Anup


Go to topic 48429

Return to index page 202
Return to index page 201
Return to index page 200
Return to index page 199
Return to index page 198
Return to index page 197
Return to index page 196
Return to index page 195
Return to index page 194
Return to index page 193