Maven

Example using play-soap-plugin with cxf-codegen-plugin maven plugin:

Add the following dependencies and plugin configuration to your pom.xml file. Additional arguments needed to generate java classes for our web-service WSDLs should be added to the <wsdlOptions> block.

<dependencies>
     <dependency>
        <groupId>com.typesafe.play</groupId>
        <artifactId>play-soap-plugin</artifactId>
        <version>${play.soap.plugin.version}</version>
     </dependency>
</dependencies>

<build>
    <plugins>
        <plugin>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-codegen-plugin</artifactId>
            <version>${cxf.version}</version>
            <executions>
                <execution>
                    <id>generate-sources</id>
                    <phase>generate-sources</phase>
                    <configuration>
                        <defaultOptions>
                            <frontEnd>play</frontEnd>
                        </defaultOptions>
                        <wsdlOptions>
                            <wsdlOption>
                                <wsdl>${basedir}/src/main/resources/helloWorld.wsdl</wsdl>
                                <extraargs>
                                    <extraarg>-xjc-Xplay:lang java</extraarg>
                                    <extraarg>-xjc-Xplay:target play</extraarg>
                                </extraargs>
                            </wsdlOption>
                        </wsdlOptions>
                    </configuration>
                    <goals>
                        <goal>wsdl2java</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>