AnsweredAssumed Answered

Consuming web services with Axis2 using Eclipse wizard

Question asked by nicolasraoul on Apr 7, 2010
Latest reply on Apr 14, 2010 by openpj
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

Nicolas Raoul

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)