cancel
Showing results for 
Search instead for 
Did you mean: 

Java Mapping

Former Member
0 Kudos

Hi Group,

In one of my File to File Interface I am using Java Mapping.In the Message Mapping they are 3 nodes.

1.Header 2.Item 3.Trailer.

I have one validation on the record count with the count mentioned in the trailer.

when I am processing the File I am getting the Exception that record count not matching,now I want to test this in the Message Mapping,how to test the scenario when Java Mapping Involved?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

Please do this at Interface Mapping.

Regards,

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

take the payload as shown in my blog:

/people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios

then test your mapping in Interface mapping (not message mapping)

Regards,

michal

Former Member
0 Kudos

Hi Michal,

When I am taking source from the Payload it is showing as row but in Mapping I have Header,Item,Trailer this is because in the Seder Communication channel in the Content Conversion I am using as Recorset structure as row and separator as new line,In the Java Mapping I am dividing this row in to Header,Item,Trailer.

Now I want to test this with taking Payload Mesaage,Can you please suggest

Former Member
0 Kudos

Hi-

Just check this blog

/people/stefan.grube/blog/2006/10/23/testing-and-debugging-java-mapping-in-developer-studio

Former Member
0 Kudos

Hello,

What ever conversions u do, in the Inbound Message payload is ur data, copy that and test ur mapping.

Regards,