Skip to main content

client/pom.xml

This pom file includes as a dependency the JAX-WS artifact jar created above and uses the Maven Exec Plugin to activate the SOAP client.

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

    <modelVersion>4.0.0</modelVersion>
    <artifactId>dev-guide-wsdl-first-client</artifactId>
    <name>-- SOAP Client</name>
    <packaging>jar</packaging>

    <parent>
        <groupId>org.talend.cxf-examples.dev-guide-wsdl-first</groupId>
        <artifactId>dev-guide-wsdl-first</artifactId>
        <version></version>
    </parent>

    <dependencies>
        <dependency>
            <groupId>org.talend.cxf-examples.dev-guide-wsdl-first</groupId>
            <artifactId>dev-guide-wsdl-first-service</artifactId>
            <!-- Classifier below used with Maven Assembly Plugin to specify 
                subset of above artifact needed. -->
            <classifier>jaxws</classifier>
            <version></version>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>exec-maven-plugin</artifactId>
                <version>1.2</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>exec</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <executable>java</executable>
                    <arguments>
                        <argument>-classpath</argument>
                        <classpath />
                        <argument>
                            client.WSClient
                        </argument>
                    </arguments>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!