For maven2 project
/ / To copy the content directly to the pom.xml inside, then run the project Run As -> maven package
<! - Import cxf version of the definition ->
<properties>
<cxf.version> 2.4.2 </ cxf.version>
</ Properties>
<build Set >
<build>
<outputDirectory> webapp / WEB-INF / classes </ outputDirectory> / / Output directory
<plugins>
<plugin>
<groupId> org.apache.cxf </ groupId>
<artifactId> cxf-java2ws-plugin </ artifactId>
<version> $ {cxf.version} </ version>
<dependencies>
<dependency>
<groupId> org.apache.cxf </ groupId>
<artifactId> cxf-rt-frontend-jaxws </ artifactId>
<version> $ {cxf.version} </ version>
</ Dependency>
<dependency>
<groupId> org.apache.cxf </ groupId>
<artifactId> cxf-rt-frontend-simple </ artifactId>
<version> $ {cxf.version} </ version>
</ Dependency>
</ Dependencies>
<executions>
<execution>
<id> process-classes </ id>
<phase> process-classes </ phase>
<configuration>
<className>
com.incesoft.commbank.smsservice.SmsSendServiceImpl / / To generate the interface (interface and implementation class are the same) of the full class name
</ ClassName>
<genWsdl> true </ genWsdl>
<verbose> true </ verbose>
<argline>-createxsdimports </ argline>
</ Configuration>
<goals>
<goal> java2ws </ goal>
</ Goals>
</ Execution>
</ Executions>
</ Plugin>
</ Plugins>
</ Build>