cancel
Showing results for 
Search instead for 
Did you mean: 

Java Mapping sample code

Former Member
0 Kudos

HI all,

I want to learn how java mapping can be done in XI.

I have created a javaMapping class implements StreamTransformation .

I am not getting what code should be written in execute method. I have included all the jar files required.

Please can anyone give me a sample code that should be written in execute method for a simple Message mapping.

I presume we use jaxp Api for that,but I am not getting the exact way to proceed further.

Thanks

Yomesh

Accepted Solutions (1)

Accepted Solutions (1)

sridharreddy_kondam
Active Contributor
0 Kudos

Hi,

Just go through this link,

<b>http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/content.htm</b>

This link will definitely help u...

Regards,

Sridhar reddy

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks Anad And Shridhar,

I am able to do java mapping now.Actually I was not understanding how the input schema will be read and converted into output schema. Now I got that the DefaultHandler class's methods like startDocument EndDocument ,startElement and EndElement takes care of this. We have to just implement these methods and they are called automatically when corresponding tags are read.

Thank You verymuch for your help,

Yomesh

Former Member
0 Kudos

Check this thread...

/message/530102#530102 [original link is broken]

Regards

Anand