cancel
Showing results for 
Search instead for 
Did you mean: 

Consuming web services with Axis2 using Eclipse wizard

nicolasraoul
Star Contributor
Star Contributor
If your Alfresco-based application needs to access an external web service, chances are you will use Eclipse's Axis2 client wizard.
For this wizard to work, it is recommended to use Axis2 version 1.4.1, which relies on Axiom 1.2.7

BUT Alfresco ships with Axiom 1.2.5
And that generates classpath problems: NoClassDefFoundError, NoSuchMethod.

Here is how I solved the problem, please let me know if you know a better solution:
1) Remove axiom-impl-1.2.5.jar and axiom-api-1.2.5.jar from the Alfresco webapp.
2) Copy all JARs from client-eclipse-project/WebContent/WEB-INF/lib to Alfresco/tomcat/webapps/alfresco/WEB-INF/lib

Cheers!
Nicolas Raoul

Keywords:
NoSuchMethodError: org.apache.axiom.soap.SOAPEnvelope.hasFault()Z
NullPointerException in induced by a previous NoClassDefFoundError and execution jumps to the finally clause: _messageContext.getTransportOut().getSender().cleanup(_messageContext)
1 REPLY 1

openpj
Elite Collaborator
Elite Collaborator
Hi Nicolas,

thank you for your contribution  :wink: