Source folder

The WSDL file must be placed in the META-INF/ws directory of the classpath.



WS-import is a tool which generates JAX-WS artifact from WSDL such as:

  • Service Endpoint Interface (SEI)
  • Client Service
  • Exception class mapped from wsdl:fault
  • JAXB generated value types (mapped java classes from schema types)

You have to use the jaxws-maven-plugin. The following code is a sample of WS-import configuration.

                        <packageName></packageName> <!-- only if you want all of this WS classes in the same package -->
                        <extension>true</extension> <!-- this flag is needed to use JMS transport -->

You can find more information about jaxws-maven-plugin here