Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

how to integrate the external dependency of axis JAR (Webservice)

Avatar

Former Community Member

Now i face a hard problem with i define a OSGI bundle involve out WebService, but can't be actively as following :

[img]1.jpg[/img]

And for fix it i do that follow this article use CFX instead of AXIS http://helpx.adobe.com/experience-manager/using/creating-cxf-bundles-consume-web.html

but fail to run command as below:

[img]2.png[/img]

 

I looking for solution but it seem i have to back use AXIS. As a result i have no way to deal with it.

[img]3.png[/img]

 

Anyone ever face it and have solution for that?

1 Accepted Solution

Avatar

Correct answer by
Level 10

Try to use JAX-WS:

http://helpx.adobe.com/experience-manager/using/creating-cq-bundles-consume-web.html

This one uses JAX-WS to invoke a web service. Its best practice to avoid AXIS as  there are many AEM dependency issues. Even you if start resolving them - then others occur. 

Here is a good community article on this issue:

http://labs.sixdimensions.com/blog/2014-08-11/running-axis-1-4-in-aem/

Notice they describe AXIS as 'Dependency HELL'! 

That s why we recommend CFX or JAX-WS. 

View solution in original post

4 Replies

Avatar

Correct answer by
Level 10

Try to use JAX-WS:

http://helpx.adobe.com/experience-manager/using/creating-cq-bundles-consume-web.html

This one uses JAX-WS to invoke a web service. Its best practice to avoid AXIS as  there are many AEM dependency issues. Even you if start resolving them - then others occur. 

Here is a good community article on this issue:

http://labs.sixdimensions.com/blog/2014-08-11/running-axis-1-4-in-aem/

Notice they describe AXIS as 'Dependency HELL'! 

That s why we recommend CFX or JAX-WS. 

Avatar

Employee

Hi,

In the past, when I have integrated Axis 1.x in AEM, I have embedded the axis-1.4.jar and commons-discovery-0.2.jar JARs into my OSGi bundle.

Regards,

Justin

Avatar

Former Community Member

How have you embedded the axis-1.4.jar and commons-discovery-0.2.jar JARs into the OSGi bundle?

Avatar

Former Community Member

 I try to use JAX-WS to invoke a WS, but it don't support SOAP encoding(It's not possibly to modify WSDL). As a result i have to back use JAX-RPC again, which means axis again.