on 10-06-2006 7:48 AM
Hi All,
If I need to do JAVA mapping, what are the jar files I need? Also where can I get them?
Thanks & Regards,
Jai Shankar.
Have mailed you the same !!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jai,
Micahls FAQ-- /people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions
Mapping-- Question 5,
<i>5. Where can I find aii_map_api.jar to create my Java mapping?
Go to your XI server folders and use this path:
j2ee\cluster\server0\apps\sap.com\com.sap.xi.services
Inside com.sap.xi.services folder you'll find the jar file.</i>
Regards,
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Shabz,
You have sent me 2 jar files. One is aii_map_api.jar and the other one is aii_msg_runtime.jar. Do we need both these jar files? Also, it will be of great help if some on can send me a very simple JAVA mapping to begin with.
For ex. My source structure is
<?xml version="1.0" encoding="utf-8" ?>
<ns:MT_JAI_FILE_SRC
xmlns:ns="urn:file:file:example">
<employee>
<Fname>Jai</Fname>
<Lname>Shankar</Lname>
<EID>5601</EID>
<employee>
</ns:MT_JAI_FILE_SRC>
and target structure is
<?xml version="1.0" encoding="utf-8" ?>
<ns:MT_JAI_FILE_TRG
xmlns:ns="urn:file:file:example">
<employee>
<Name>Jai Shankar</Name>
<EID>5601</EID>
<employee>
</ns:MT_JAI_FILE_TRG>
How the JAVA mapping for this structure is developed?
Thanks & Regards,
Jai Shankar.
you need aii_map_api.jar for java mapping. the other Jars are for java proxy.
you java mapping is going to be simple.
Use SAX parser. It is event based.
Ref: /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii
And in the event startElement() start to create tags.
in the event characters() get the values from the tag.
You can concat fname and lname here. in endElement() you can wtite the end tags.
Ref. those blogs. Its a complex one in it but in your case it is a pretty simple one.
User | Count |
---|---|
92 | |
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.