cancel
Showing results for 
Search instead for 
Did you mean: 

Java Mapping in XI

Former Member
0 Kudos

How is Java Mapping for XI is accomplished generally? R there any tools for Java Mapping?

-Naveen.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Naveen,

Go through this urls which may help you what you are expecting:

/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i

/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii

/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii

If you want you can also send java code as payload to do mapping in XI. For this go through the url:

/people/sap.user72/blog/2005/12/14/sending-java-code-as-payload-to-do-mapping-in-xi

Hope this helps Naveen...

---Satish

Answers (2)

Answers (2)

former_member91687
Active Contributor
0 Kudos

Hi Naveen,

You need to have an IDE such as NETWEAVWER DEVELOPER STUDIO installed on your system. Once this is done these are the steps you need to follow to write the program and to be able to use it in the directory:

1. Write your java program.You need the libraries aii_map_api.jar and inqmyxml.jar.You can use SAX or DOM for navigating through the source XML and creating the target XML.

2. Create Jar file. After compiling your program, you have to create a jar file. The content of the jar file have to be all classes and libraries you need for the mapping program to run.

3.Load the JAR file into the IR.Go to the Integration Repository. Under your Software Component and Namespace you create a new Mapping Object ‘Imported Archive’. Inside this object you upload the jar file.

4.Attach Java mapping to an interface mapping.

Create a new Mapping Object ‘Interface Mapping’, chose the interfaces you want to map. To attach the Mapping to the request or response, use ‘value help’ and chose ‘Java Class’. Chose the Java Class with the corresponding mapping. After saving and activating the change list, you will be able to use the Mapping in the Integration Directory.

Some very good blogs are available right here to help you out

/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i

/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii

/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii

Cheers,

Chandra

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

You java Maping class should implemement the StreamTransformation Interface and you wirte the mapping loigic i the EXECUTE method . The inpur / SOurce Payload is given as the InputSTream to this method and you push out the Outputstream.

Regards,

Bhavesh

Former Member
0 Kudos

Hi Naveen,

You can make use of the netweaver developer studio..(or any other IDE for Java for that matter) to deveolop the java mapping....you will need the jar files which has the mapping api and put in the class path of the IDE that you are using for compilation....

create the class...and make jar out of it and upload it to the repository and you are ready to go....

thanks,

Renjith