cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping Query

Former Member
0 Kudos

Hi,

I have a mapping requirement like this :

source structure

200 , 7

200 , 8

200 , 9

200 , 10

I have to map it to the target structure which is like below:

<tms_map> 1:1

field 1 1:1

field 2 1:1

</tms_map>

Can any body suggest how to map it.

Thanks & Regards

Prabhat

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

If you have fixed number of input as u mentioned

200 , 7

200 , 8

200 , 9

200 , 10

then duplicate target structure four times i.e. your tms_map and then do 1 to 1 mapping(right click duplicate)

Without 0..unbounded occurance it is not possible to map 1 to 1 directly i think u have to duplicate target field.

i think this will solve your problem.

Regards,

Rohit.

Reward points if helpful.

Former Member
0 Kudos

Hi,

The source structure occurence is not fixed . It can occur any number of times

Thanks & Regards

Prabhat

Former Member
0 Kudos

Hi,

It's not possible untill you are not going to make the occurrence 0..unbound at target side.

Well not sure if any one can suggest some other solution but in my opinion it is not possible.

Former Member
0 Kudos

Hi ,

Any solution????

Regards

Prabhat

Former Member
0 Kudos

Hi,

Any solution to my problem.

Regards

Prabhat

Former Member
0 Kudos

Explain your requirement in detail with good example.

Because in the given source and target structure by you, I am not able to conclude what exactly you wnat and what problem you are facing in doing that..

Former Member
0 Kudos

Hi Prabhat,

Could you please explain it in detail.

Thanks,

Kiran

Former Member
0 Kudos

Hi ,

it's related to file to SOAP scenario.

I have a source structure say :

200 (field 1) , 7 (field2)

200 (field 1) , 8 (field2)

200 (field 1) , 9 (field2)

200 (field 1), 10 (field2)

Now using file adapter I pick up the file but I have to generate only one SOAP request for the multiple records.

At traget the structure is:

<tms_map> 1: 1 occurence

field 1 1: 1 occurence

field 2 1: 1 occurence

</tms_map>

How to achive it using mapping so that for multiple records of source only one soap request should go.

I cheked with multimapping but it was not generating the output structure.

Thanks & Regards

Prabhat

Therefore source

Former Member
0 Kudos

> Now using file adapter I pick up the file but I have to generate only one SOAP request for the multiple records.

>

> At traget the structure is:

> <tms_map> 1: 1 occurence

> field 1 1: 1 occurence

> field 2 1: 1 occurence

> </tms_map>

>

> How to achive it using mapping so that for multiple records of source only one soap request should go.

Hi,

You need to make some changes in your target structure as mentioned below:

<tms_map> 1: 1 occurence

-


< records > 0...unbound

-


field 1 1: 1 occurence

-


field 2 1: 1 occurence

-


</ records >

</tms_map>

I don't know your source sturcutre but in my opinion it should be exactly same as your target structure.

if structures are not same then create them and do 1:1 mapping.

How you are picking the file? Are you using FCC?

Regards,

Sarvesh

Former Member
0 Kudos

Hi,

My requirement is not to add

< records > 0...unbound

in the target structure.

Without it how it can be achieved.

Thanks & Regards

Prabhat