cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping problem

Former Member
0 Kudos

Hi,

I have proxy to soap scenario.

I have a source like this

ROW_SaveTaxCode 0..unbounded

item1

item 2

item 3

item 4

And Target like this :

TaxCode 0..unbounded

target1

target2

target3

Childnode 0 ..unbounded

st1

st2

So i have mapped source to target node. once i run the scenario child target node repeats in first occurance not with to each occurance.

please provide me some maping solutions.

Regards

Laxmi Bhushan

Edited by: laxmi bhushan on Feb 25, 2011 1:38 PM

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

>

> Hi,

>

> I have proxy to soap scenario.

> I have a source like this

> ROW_SaveTaxCode 0..unbounded

> item1

> item 2

> item 3

> item 4

>

> And Target like this :

> TaxCode 0..unbounded

> target1

> target2

> target3

> Childnode 0 ..unbounded

> st1

> st2

>

> So i have mapped source to target node. once i run the scenario child target node repeats in first occurance not with to each occurance.

>

> please provide me some maping solutions.

>

> Regards

> Laxmi Bhushan

>

> Edited by: laxmi bhushan on Feb 25, 2011 1:38 PM

If i understand, you have to map <item4> to <childnode> right? To do this you have to map to item4 context node

Former Member
0 Kudos

try mapping ROW_SaveTaxCode to TaxCode

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi ,

your req not clear, please elobarate...

Former Member
0 Kudos

lets say i have send 5 records thru proxy. in target we gets 5 occurances but in first occurance child node repeats 5 times.

so chlid should not repeat 5 times in first occurance it should be against each occurrences.

Currently target is like this.

<?xml version="1.0" encoding="UTF-8" ?>

- <ns1:SaveTaxCodeList xmlns:ns1="http://www.iVend.com/IIntegrationService/2010/12">

- <ns1:taxCodeList>

- <ns1:TaxCode>

<ns1:Message />

- <ns1:TaxPeriodDefinitionList>

- <ns1:TaxPeriodDefination>

<ns1:TaxRate>0.0</ns1:TaxRate>

<ns1:StartDate>20110225</ns1:StartDate>

<ns1:IsDeleted>0</ns1:IsDeleted>

</ns1:TaxPeriodDefination>

- <ns1:TaxPeriodDefination>

<ns1:TaxRate>0.0</ns1:TaxRate>

<ns1:StartDate>20110225</ns1:StartDate>

<ns1:IsDeleted>0</ns1:IsDeleted>

</ns1:TaxPeriodDefination>

- <ns1:TaxPeriodDefination>

<ns1:TaxRate>15.0</ns1:TaxRate>

<ns1:StartDate>20110225</ns1:StartDate>

<ns1:IsDeleted>0</ns1:IsDeleted>

</ns1:TaxPeriodDefination>

- <ns1:TaxPeriodDefination>

<ns1:TaxRate>0.0</ns1:TaxRate>

<ns1:StartDate>20110225</ns1:StartDate>

<ns1:IsDeleted>0</ns1:IsDeleted>

</ns1:TaxPeriodDefination>

- <ns1:TaxPeriodDefination>

<ns1:TaxRate>0.0</ns1:TaxRate>

<ns1:StartDate>20110225</ns1:StartDate>

<ns1:IsDeleted>0</ns1:IsDeleted>

</ns1:TaxPeriodDefination>

</ns1:TaxPeriodDefinitionList>

<ns1:Id>A0</ns1:Id>

<ns1:Description>0% Output Tax</ns1:Description>

<ns1:Type>Output</ns1:Type>

<ns1:TaxRate>0.0</ns1:TaxRate>

<ns1:CanApplyOnExpense>0</ns1:CanApplyOnExpense>

</ns1:TaxCode>

- <ns1:TaxCode>

<ns1:Id>A1</ns1:Id>

<ns1:Description>Output VAT 5%</ns1:Description>

<ns1:Type>Output</ns1:Type>

<ns1:TaxRate>0.0</ns1:TaxRate>

<ns1:CanApplyOnExpense>0</ns1:CanApplyOnExpense>

</ns1:TaxCode>

- <ns1:TaxCode>

<ns1:Id>A2</ns1:Id>

<ns1:Description>Tax Percentage 15 %</ns1:Description>

<ns1:Type>Output</ns1:Type>

<ns1:TaxRate>15.0</ns1:TaxRate>

<ns1:CanApplyOnExpense>0</ns1:CanApplyOnExpense>

</ns1:TaxCode>

- <ns1:TaxCode>

<ns1:Id>V0</ns1:Id>

<ns1:Description>0% Input Tax</ns1:Description>

<ns1:Type>Input</ns1:Type>

<ns1:TaxRate>0.0</ns1:TaxRate>

<ns1:CanApplyOnExpense>0</ns1:CanApplyOnExpense>

</ns1:TaxCode>

- <ns1:TaxCode>

<ns1:Id>V1</ns1:Id>

<ns1:Description>5% VAT</ns1:Description>

<ns1:Type>Input</ns1:Type>

<ns1:TaxRate>0.0</ns1:TaxRate>

<ns1:CanApplyOnExpense>0</ns1:CanApplyOnExpense>

</ns1:TaxCode>

</ns1:taxCodeList>

</ns1:SaveTaxCodeList>

RKothari
Contributor
0 Kudos

Hi,

Make sure that the context of the target node (<ns1:TaxPeriodDefination>) is proper

It should be as below

TaxPeriodDefination - corresponding to first parent

ContextChange

TaxPeriodDefination - corresponding to second parent

TaxPeriodDefination

ContextChange

.

.

ContextChange

after each set of childnode for a parent there should be a context change.

Hope this helps.

Thanks,

-Rahul