Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
<configuration>
   <className>...</className>
   <classPath>...</classPath>
   <outputFile>...</outputFile>
   <serviceName>...</serviceName>
   <soap12>...</soap12>
   <targetNameSpace>...</targetNameSpace>
   <verbose>...</verbose>
   <quiet>...</quiet>
</configuration>

Java2WS

This plugin will be ready in 2.1 realse .Now You can use 2.1-incubator-SNAPSHOT version of this plugin.
This plugin can generate WSDL, server side code used to start web service and client side code from
a java class.
Here is a simple example:

Code Block
xml
xml

<plugin>
	<groupId>org.apache.cxf</groupId>
	<artifactId>cxf-java2ws-plugin</artifactId>
	<version>2.1-incubator-SNAPSHOT</version>
	<dependencies>
		<dependency>
			<groupId>org.apache.cxf</groupId>
			<artifactId>cxf-rt-frontend-jaxws</artifactId>
			<version>2.1-incubator-SNAPSHOT</version>
		</dependency>
		<dependency>
			<groupId>org.apache.cxf</groupId>
			<artifactId>cxf-rt-frontend-simple</artifactId>
			<version>2.1-incubator-SNAPSHOT</version>
		</dependency>
	</dependencies>

	<executions>
		<execution>
			<id>generate-test-sources</id>
			<phase>generate-test-sources</phase>
			<configuration>
				<className>org.apache.hello_world.Greeter</className>
				<genWsdl>true</genWsdl>
				<verbose>true</verbose>
			</configuration>
			<goals>
				<goal>java2ws</goal>
			</goals>
		</execution>
	</executions>
</plugin>

Here are the options you can use:

Code Block

<configuration>
   <className>...</className>
   <classPath>...</classPath>
   <outputFile>...</outputFile>
   <genWsdl>..</genWsdl>
   <genServer>..</genServer>
   <genClient>..</genClient>
   <genWrapperbean>..</genWrapperbean>
   <frontend>...</frontend>
   <databinding>...</databinding>
   <serviceName>...</serviceName>
   <soap12>...</soap12>
   <targetNameSpace>...</targetNameSpace>
   <verbose>...</verbose>
   <quiet>...</quiet>
</configuration>

The outputFile value by default will be:

Code Block
{project.build.directory}/generated/wsdl/{className}.wsdl

Refer to this link http://cwiki.apache.org/CXF20DOC/java-to-ws.htmlImage Added for other options detailed usage.