cancel
Showing results for 
Search instead for 
Did you mean: 

Replacement of SAP XML Toolkit by JDK 5

thorsten_hautz
Participant
0 Kudos

Hi,

we have a lot of XSLT mappings with Java-Enhancement in our PI 7.1 system.

So we are using SAP XML Toolkit at the moment.

In the future release SAP doesn't want to support SAP XML Toolkit anymore.

So does anybody know what we have to do for using Java Enhancements in the future?

It's not possible for us to loose this functionality, we have to use XSLT mappings with Java calls in the future too.

Is there eventually a possibility to use a function

I didn't find any information about that on SAP Help ore anywhere else.

I hope anybody know how to do this.

Regards

Thorsten

Accepted Solutions (1)

Accepted Solutions (1)

marksmyth
Product and Topic Expert
Product and Topic Expert
0 Kudos
thorsten_hautz
Participant
0 Kudos

Hi Mark,

thanks for your answer.

There you can find that Java Enhancement only works with SAP XML Toolkit.

But this is the problem.

In the future releases of SAP PI there won't be a SAP XML Toolkit cause SAP doesn't want to support it anymore.

You have to use JDK 5 for the XSLT mapping.

But there is ( as we know) no solution how to use Java Enhancement.

Do you know if there is a way to use Java Enhancements with Standard JDK without using SAP XML Toolkit?

Regards

Thorsten

Former Member
0 Kudos

Hi,

Use the Java mapping look-up API for PI 7.1. That will take care of the SAP XML Toolkit option.

Regards,

Neetesh

thorsten_hautz
Participant
0 Kudos

Hi Neetesh,

does the Java mapping lookup work with XSLT too?

I thought you can only use it in the message mapping.

Regards

Thorsten

Former Member
0 Kudos

Yes, it works for XSL mappings. Using these latest APIs will make the XSL mappings independent of the XML Toolkit option.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

just started a few days ago enhancing XSLT mappings with Java extension functions.

I started out of SAP PI, using Saxon and Xalan. When moving to SAP PI (7.1 Enh 1) I experienced that the SAP XML Toolkit is working the "Saxon" way.

The transformer of SAP XML Toolkit identifies itself as from vendor InQMy Labs .

The transformer of JDK identifies itself as from vendor Apache Software Foundation (Xalan XSLTC) , which is the same as on my workstation running Oracle/Sun JRE 1.6.0_22 .

After some searching I found a hint at [Xalan, Java, XSLTC|http://rakeshdiscovery.blogspot.com/2008/12/xalan-java-xsltc.html] .

Using [the abbreviated syntax for extensions implemented in Java|http://xml.apache.org/xalan-j/extensions.html#java-namespace] mentioned there, I was able to run XSLT mappings with Java enhancements using the transformer of the JDK .

I still have a problem: One of my Java classes makes use of third party classes (e.g. from Seeburger). When testing the XSLT mapping in Operation Mapping I get an error "Failed to load and instanciate" with cause "Could not read properties" , even after importing the corresponding JARs as Imported Archive objects. This was not the case when running with SAP XML Toolkit .

I assume that the class loading mechanism, respective the classpath is different than before. So, if somebody knows a solution for this ...