Can Apache Axis 1 and 2 libraries be included in the same project?

If that sounds like a funny idea, then it is. The client only wants to install one project on his server. Our web service will connect between mobile phones and various SOAP services made in .NET, Apache Axis 1 and 2, which rely on standards for file transfers such as MTOM and DIME .

I am looking for a “architecture” trick , for example, creating Axis 1 calls in a separate project and compiling it as a jar, then transferring it to the Axis 2 project .... Hmmm.

Nothing but the need to download the source code for Axis 1 and 2 and compile them using the same xml libraries, etc.

“This cannot be done” is an acceptable answer.

Thanks!

+4
source share
4 answers

This is not possible, I tried once. They depend on different versions of the same cans.

0
source

Axis1 and Axis2 libraries live in different packages - can you just put them in a project and use them?

There is a migration guide here that covers some of the differences:

http://ws.apache.org/axis2/1_2/migration.html

+2
source

Try JarJar

The idea he uses is to create a new jar with package names shifted by the prefix. You can link part of your code in the bank, the code of which will be changed to use the new package name. The rest of your application will continue to use the old package name - this is the old jar in the classpath

Edit: I don’t remember that they have different package names. In this case, you do not need to do anything special to use them together.

0
source

I was going to assume that we are deploying two WAR files into a single EAR file, an example . These are two projects that will eventually be installed, of course, but waving one file in front of the manager will please me, as they are likely to swallow it. However, this comment suggests that I cannot even do this, and I will need two EAR files ... -1

0
source

Source: https://habr.com/ru/post/1312881/


All Articles