cancel
Showing results for 
Search instead for 
Did you mean: 

ContentConvertion at Receiver CC

Former Member
0 Kudos

Hi Experts, I am new to XI, I am trying out this scenario, I stuck at CC at Reciver

Could any one suggest me the reciver communication channel for Content convertion for the below xml file? please disucss Content Convertion paramenters only!

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

- <ns0:mt_o xmlns:ns0="http://test/RAMS">

- <b>

<b1>asdfas</b1>

<b2>asfa</b2>

<b3>faf</b3>

<b4>fasa</b4>

<b5>asdf</b5>

</b>

</ns0:mt_o>

thnx

RAMS

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

thnx all

Former Member
0 Kudos

Hi,

You have provided only the source xml file but you have not specified how you target data should look like. If you provide thus it will be easy.

Anyways, this blog will help you.

/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion

Regards

Ramesh P

Former Member
0 Kudos

target xml file is :

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

<ns0:mt_i xmlns:ns0="http://test/RAMS">

<a>

<a1>asdfas</a1>

<a2>asfa</a2>

<a3>faf</a3>

<a4>fasa</a4>

<a5>asdf</a5>

</a>

</ns0:mt_i>

thnx you

Former Member
0 Kudos

THIS IS THE CORRECT STRUCTRE AT RECEIVER SIDE

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

<ns0:mt_o xmlns:ns0="http://test/subbu">

<a>

<a1>asdfas</a1>

<a2>asfa</a2>

<a3>faf</a3>

<a4>fasa</a4>

<a5>asdf</a5>

</a>

</ns0:mt_o>

Former Member
0 Kudos

there is problem while pasting , Please read the target message like this "<a><a1>asdfas</a1><a2>asfa</a2>

<a3>faf</a3>

<a4>fasa</a4>

<a5>asdf</a5></a>"is the actual structure,

Some how "<a>" is getting missed on my copy paste!

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

<ns0:mt_o xmlns:ns0="http://test/subbu"><a><a1>asdfas</a1><a2>asfa</a2>

<a3>faf</a3>

<a4>fasa</a4>

<a5>asdf</a5></a></ns0:mt_o>

Former Member
0 Kudos

Can you provide the source structure that you reading as input.

Former Member
0 Kudos

a

a1

a2

a3

a4

a

When i am putting "a" in angular brackets, and upon posting it , it is not appearing in the posted message.

thank for co-opeation

RAMS

Former Member
0 Kudos

source :

b

b1

b2

b3

b4

b5

b

Target

a

a1

a2

a3

a4

a5

a

Here b is root in sender, and a is root in receiver

just 1-1 mapping.

I am using ";" as delimenter

Thnx

RAMS

Former Member
0 Kudos

See Rams,

Are you doing a file to file scenario.If so

Can you tell me the source file you are reading and the target file you need. I think you require a sender File content Conversion.

correct me if am wrong

Regards

Ramesh P

Former Member
0 Kudos

source file

1,2,3,4,5

a,b,c,d,e

target file must be

1;2;3;4;5

a;b;c;d;e

thnx

RAMS

Former Member
0 Kudos

correct me if i am wrong.

are both the source and receiver are xml files......

Message was edited by:

Ramesh Parashivamurthy

Former Member
0 Kudos

yes ramesh,

It is simple test File content convertion scenario

I am doing this as sample test scenario.

Thanks alot

RAMs

Former Member
0 Kudos

both are .txt files

Former Member
0 Kudos

hi ramesh,

I am trying File content convertion with FTP on both sides with .txt file

am i clear

thnx

RAMS

Former Member
0 Kudos

yes now its clear to me.

Here you need to content conversion at both sides.

Sender and Receiver File Content Conversion

I will provide some more inputs in few minutes...

Regards,

Ramesh P

Former Member
0 Kudos

Thank you ramesh,

Waiting for your valuble answer!

i want receiver side communication chanel FTP content convertion parameters!

Thank you

RAMS

nisarkhan_n
Active Contributor
0 Kudos

Target

a

a1

a2

a3

a4

a5

a

just use these at the Receiver CC with recordset value 'a'

a.fieldSeparator ;

a.endSeparator 'nl'

Former Member
0 Kudos

Assuming b is the root

b.addHeaderLine 0

b.fieldSeparator ';'

b.endSeparator 'nl'

I think these are enough

Message was edited by:

Ramesh Parashivamurthy

Former Member
0 Kudos

Thnx all!

My problem is soved

RAMS