Message Boards

How to generate an axis2 client from a WSDL

thumbnail
Andre Albert, modified 3 Years ago.

How to generate an axis2 client from a WSDL

New Member Posts: 13 Join Date: 3/28/14 Recent Posts
Hello developers,I need to create an axis2 client stub for a WSDL Soap WebService.I have found the existing com.liferay.wsdl.builder Gradle plugin, which seems to build per default axis1 clients. After setting buildWSDL.axisVersion = 2 it seems to now tries to build axis2 clients but i get errors when executing the task: 
Caused by: java.lang.ClassNotFoundException: org.apache.axis2.schema.ExtensionUtility
In the Readme documentation (https://github.com/liferay/liferay-portal/tree/master/modules/sdk/gradle-plugins-wsdl-builder) it is mentioned that per default axis1 dependencies are added. Can somebody please help me to setup the correct dependencies for axis2?I tried to add 
group: 'org.apache.axis2', name: 'axis2'
but this does not solve the issue.Many thanks and greetings
JustFor Answer, modified 3 Years ago.

RE: How to generate an axis2 client from a WSDL

New Member Post: 1 Join Date: 11/16/20 Recent Posts

Hey Andre! Did you manage to deal with this issue? You can try to add this to dependencies:

wsdlBuilder 'org.apache.axis2:axis2-adb-codegen:1.7.9'

Anyway in my case it did not help due to another issues after that