on 04-22-2006 11:04 PM
Can I get a step by Step Procedure on the Java Mapping please, with a very simple example.
Thanks
Hi
For Java Mappin u need two API jar files:
1. aii_map_api.jar
2. dom4j-1.3.jar
Then mappin code written in java class which implements the stream transformation interface.This class contain execute mehtod in which u hav to write the code(mappin u hav to done). this method contain input and output stream as arguements.
after tat u hav to compile the .java file and zip both .java and .class file.
then u hav import tis zip file as imported archive.
In interface mappin choose mappin class option and browse usin browsin button to get the zip file class.
Hope this helps u out.
Regards
Victoria.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mohan,
have a look at this example :
https://www.sdn.sap.com/irj/sdn/elearning?class=/sdntv/main.asp?mediaId=109
Regards,
michal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mohan,
In Java Mapping, you parse the source XML structure using DOM parser or SAX parser.You would find all the classes methods etc to go about learning and implementing the java mapping using either of the parsers at sun.java.com, one such exhaustive resource can be found here:
http://java.sun.com/webservices/docs/1.1/tutorial/doc/
http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm
To give you a brief idea about how to go about java mapping, these are the steps you would be doing:
You need to have NWDS 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.
<b>SAX PARSER:</b>
http://www.cafeconleche.org/books/xmljava/chapters/ch06.html#d0e8069
<b>DOM PARSER</b>
http://www.cafeconleche.org/books/xmljava/chapters/ch09.html
Regards,
Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please find this document, may be useful.
http://help.sap.com/bp_bpmv130/index.htm
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
/people/michal.krawczyk2/blog/2005/02/25/simple-java-code-in-graphical-mapping--xi
/people/pooja.pandey/blog/2005/06/27/xslt-mapping-with-java-enhancement-for-beginners
//Raj.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ram,
Also if you want SAP Tutor Files, Please follow this link.
Thanks a lot Raj. I need more help on the Tutor files.
1) http://help.sap.com/bp_bpmv130/index.htm
2) Selected Business Information
3) Demo Offering
But I didnot see anything relevant to Java Mapping.
4) Selected More Demo Tutorials ( Right Side)
5) Logged into Service.sap.com, but I could not find more Demo Files.
Could you please help me Raj. Thanks.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.