how to integrate the external dependency of axis JAR (Webservice) | Community
Skip to main content
October 16, 2015
Solved

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

  • October 16, 2015
  • 4 replies
  • 1165 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

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. 

4 replies

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

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. 

Adobe Employee
October 16, 2015

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

October 16, 2015

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

October 16, 2015

 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.