Return to Snippet

Revision: 64477
at August 11, 2013 12:14 by rtperson


Initial Code
<!-- Build Settings -->
    <build>
        <finalName>${rootArtifactId}-webservice-client</finalName>
        <plugins>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.5</source>
                    <target>1.5</target>
                    <encoding>UTF-8</encoding>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-resources-plugin</artifactId>
                <configuration>
                    <encoding>UTF-8</encoding>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>jaxws-maven-plugin</artifactId>
                <version>1.10</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>wsimport</goal>
                        </goals>
                        <configuration>
                            <wsdlUrls>
                                <wsdlUrl>${basedir}/../WebService/target/jaxws/wsgen/wsdl/WebService.wsdl</wsdlUrl>
                            </wsdlUrls>
                            <packageName>${package}.ws.client</packageName>
                            <sourceDestDir>${basedir}/src/main/java</sourceDestDir>
                            <destDir>${basedir}/target/jaxws</destDir>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

Initial URL

                                

Initial Description
Use this if you need Maven to automatically create a SOAP client for you.

Initial Title
Create a Webservice Client using Maven ws-import Plugin

Initial Tags

                                

Initial Language
XML