cancel
Showing results for 
Search instead for 
Did you mean: 

jar files required for JAVA mapping

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Shabarish_Nair
Active Contributor
0 Kudos

Have mailed you the same !!!

Answers (1)

Answers (1)

bhavesh_kantilal
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Bhavesh,

If I understood correctly, I need to put the aii_map_api.jar im the class path of NWDS. Do I need only this jar file for JVA mapping?

Thanks & Regards,

Jai Shankar.

agasthuri_doss
Active Contributor
0 Kudos

Hi Jai,

You are correct,

Regards

Agasthuri Doss

Former Member
0 Kudos

Hi Shabz,

Got it. Thanks. It was very fast.

Thanks and Regards,

Jai Shankar.

Shabarish_Nair
Active Contributor
0 Kudos

in NDS -> Project -> java Build path -> Add external Jars give the jar entry.

Former Member
0 Kudos

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.

Shabarish_Nair
Active Contributor
0 Kudos

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.