Click here to Skip to main content
15,881,559 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have two schema source and destination with following structure.


<ns0:productreq xmlns:ns0="http://ProductOrder.ProductResuest">
<custmorid>CustmorId_0
<requestid>RequestId_0
- <products>
<productid>ProductId_0
<quantity>Quantity_0

- <shippinginfo>
<city>City_0
<state>State_0
<country>Country_0


and

<ns0:productdata xmlns:ns0="http://ProductOrder.RequestData">
<custmorid>CustmorId_0
<requestid>RequestId_0
- <products>
<productid>ProductId_0
<quantity>Quantity_0
<availabequnty>AvailabeQunty_0
<priceperqty>PricePerQty_0

- <shippinginfo>
<city>City_0
<state>State_0
<country>Country_0



Now i want to map as follows

for every productid ,recored are fetched from database and mapped to destiantion schema.
Posted

1 solution

Hi,

Loop around the productid node and use database functoid to fetch the data from database and map it to destination schema.

Thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900