cancel
Showing results for 
Search instead for 
Did you mean: 

Wrong data in output file

RahulKeshav
Active Contributor
0 Kudos

Hi All,

I am doing file to file senario...

File is picked from source location and placed in Target location....

File is name is xi_in_sum.dat in cc of source system,

and xi_out_sum.dat for cc of receiver system..

but the file at the target is giving the result as ...

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

<ns0:MT_RK_RECEIVER xmlns:ns0="urn:rk:test"><number result="24"></number></ns0:MT_RK_RECEIVER>

here result is the value....so

file should display 24..

Thnx

Rohit

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dear Rohit,

Please declare Result as Element in receiver structure instead of Attribute.

then it will come as an element in the XML document in the xi_out_sum.dat

Regards

Praveen Kumar

RahulKeshav
Active Contributor
0 Kudos

result is already of element type....

OUTPUT

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

<ns0:MT_RK_RECEIVER xmlns:ns0="urn:rk:test"><Number><Result>47</Result></Number></ns0:MT_RK_RECEIVER>

Edited by: Rohit Kumar on Dec 19, 2008 4:08 PM

Former Member
0 Kudos

Then check your target interface wether you assigned the correct message type or not and also interface mapping.

SudhirT
Active Contributor
0 Kudos

Check the Output Data Type. I think you have created Result as the subelement under Number and for Number you havent given any data type like string.

Thanks!

RahulKeshav
Active Contributor
0 Kudos

I think there is no need for that....

Result is subelement under Number....

......if it has to be, plz suggest me...

one more thing...

in CC for sender system i m using file conversion

and for receiver cc i m not ....

so plz suggest.....if that is creating any problem

Edited by: Rohit Kumar on Dec 19, 2008 4:29 PM

Answers (2)

Answers (2)

RahulKeshav
Active Contributor
0 Kudos

any one????

prateek
Active Contributor
0 Kudos

Your message structure is incorrect. Check the datatype created. The xml structure you showed above shows that Result is an attribute and not a sub-element. Create a sub element in datatype.

Regards,

Prateek

RahulKeshav
Active Contributor
0 Kudos

DT_RK_RECEIVER Complex Type

Number Element 1

Result Element 1

thats the structure ......

OUT PUT file Data

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

<ns0:MT_RK_RECEIVER xmlns:ns0="urn:rk:test"><Number><Result>47</Result></Number></ns0:MT_RK_RECEIVER>