Click here to Skip to main content
13,048,011 members (74,621 online)
Rate this:
 
Please Sign up or sign in to vote.
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 12-Jul-13 8:42am

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Hi,

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

Thanks
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 24 Jun 2014
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100