0

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 will generate classes from a WSDL?

Pascal Thivent
  • 562,542
  • 136
  • 1,062
  • 1,124
jjujuma
  • 22,055
  • 12
  • 44
  • 46

1 Answers1

1

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.

Community
  • 1
  • 1
  • I can't believe that worked. How stupid is it that the documentation they provide doesn't even state this... I was having all sorts of issues just building something it generated the code for. Switching `axis2` to `axis2-codegen` solved the compilation issue... – Nick Klauer Apr 30 '12 at 15:50