CXF wsdl and xsd file automatically generated

2011-09-20  来源:本站原创  分类:Development  人气:137 

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>

相关文章