What are the minimum dependencies and plugin configuration I need to create a web service client using Axis2 and Maven from a WSDL file?
I'm trying to create a web service client using Axis2. I would like to use Maven 2 to generate the necessary classes from the WSDL I have but the documentation for the wsdl2code plugin isn't helping me. Does anyone have a working example of a basic pom.xml that 开发者_C百科will generate classes from a WSDL?
Maybe this other post can help you.
The Axis2 code generation module should be the main player in this and you can add a pom entry like the following for it:
<dependency>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-codegen</artifactId>
<version>1.5.1</version>
</dependency>
Maven transitive dependencies should then cover the rest.
精彩评论