Skip to content

Commit 331e7eb

Browse files
committed
Migrated Stock Quote sample to maven
1 parent d9b6e98 commit 331e7eb

File tree

24 files changed

+203
-421
lines changed

24 files changed

+203
-421
lines changed
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<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">
3+
<parent>
4+
<artifactId>stockquote-client</artifactId>
5+
<groupId>org.springframework.ws</groupId>
6+
<version>2.0.0-M1-SNAPSHOT</version>
7+
<relativePath>../pom.xml</relativePath>
8+
</parent>
9+
<modelVersion>4.0.0</modelVersion>
10+
<artifactId>stockquote-jax-ws-client</artifactId>
11+
<packaging>jar</packaging>
12+
<name>Spring WS Stock Quote Sample - JAX-WS Client</name>
13+
<profiles>
14+
<profile>
15+
<id>jdk15</id>
16+
<activation>
17+
<jdk>!1.6</jdk>
18+
</activation>
19+
<dependencies>
20+
<dependency>
21+
<groupId>javax.xml.soap</groupId>
22+
<artifactId>saaj-api</artifactId>
23+
<scope>compile</scope>
24+
</dependency>
25+
</dependencies>
26+
</profile>
27+
</profiles>
28+
<build>
29+
<plugins>
30+
<plugin>
31+
<groupId>org.codehaus.mojo</groupId>
32+
<artifactId>jaxws-maven-plugin</artifactId>
33+
<executions>
34+
<execution>
35+
<goals>
36+
<goal>wsimport</goal>
37+
</goals>
38+
<configuration>
39+
<wsdlUrls>
40+
<wsdlUrl>file://${project.basedir}/../../server//src/main/resources/org/springframework/ws/samples/stockquote/ws/stockquote.wsdl</wsdlUrl>
41+
</wsdlUrls>
42+
<packageName>org.springframework.ws.samples.stockquote.client.jaxws</packageName>
43+
</configuration>
44+
</execution>
45+
</executions>
46+
</plugin>
47+
<plugin>
48+
<groupId>org.codehaus.mojo</groupId>
49+
<artifactId>exec-maven-plugin</artifactId>
50+
<executions>
51+
<execution>
52+
<goals>
53+
<goal>java</goal>
54+
</goals>
55+
</execution>
56+
</executions>
57+
<configuration>
58+
<mainClass>org.springframework.ws.samples.stockquote.client.jaxws.Main</mainClass>
59+
</configuration>
60+
</plugin>
61+
</plugins>
62+
</build>
63+
</project>

samples/stockquote/client/jax-ws/readme.txt

Lines changed: 0 additions & 11 deletions
This file was deleted.

samples/stockquote/client/pom.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<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">
3+
<parent>
4+
<artifactId>stockquote</artifactId>
5+
<groupId>org.springframework.ws</groupId>
6+
<version>2.0.0-M1-SNAPSHOT</version>
7+
<relativePath>../pom.xml</relativePath>
8+
</parent>
9+
<modelVersion>4.0.0</modelVersion>
10+
<artifactId>stockquote-client</artifactId>
11+
<packaging>pom</packaging>
12+
<name>Spring WS Stock Quote Sample - Clients</name>
13+
<modules>
14+
<module>jax-ws</module>
15+
<module>spring-ws</module>
16+
</modules>
17+
</project>
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<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">
3+
<parent>
4+
<artifactId>stockquote-client</artifactId>
5+
<groupId>org.springframework.ws</groupId>
6+
<version>2.0.0-M1-SNAPSHOT</version>
7+
<relativePath>../pom.xml</relativePath>
8+
</parent>
9+
<modelVersion>4.0.0</modelVersion>
10+
<artifactId>stockquote-spring-ws-client</artifactId>
11+
<packaging>jar</packaging>
12+
<name>Spring WS Stock Quote Sample - Spring-WS Client</name>
13+
<profiles>
14+
<profile>
15+
<id>jdk15</id>
16+
<activation>
17+
<jdk>!1.6</jdk>
18+
</activation>
19+
<dependencies>
20+
<dependency>
21+
<groupId>javax.xml.soap</groupId>
22+
<artifactId>saaj-api</artifactId>
23+
<scope>runtime</scope>
24+
</dependency>
25+
</dependencies>
26+
</profile>
27+
</profiles>
28+
<build>
29+
<plugins>
30+
<plugin>
31+
<groupId>org.codehaus.mojo</groupId>
32+
<artifactId>exec-maven-plugin</artifactId>
33+
<executions>
34+
<execution>
35+
<goals>
36+
<goal>java</goal>
37+
</goals>
38+
</execution>
39+
</executions>
40+
<configuration>
41+
<mainClass>org.springframework.ws.samples.stockquote.client.sws.StockClient</mainClass>
42+
</configuration>
43+
</plugin>
44+
</plugins>
45+
</build>
46+
<dependencies>
47+
<dependency>
48+
<groupId>org.springframework</groupId>
49+
<artifactId>spring-context</artifactId>
50+
</dependency>
51+
<dependency>
52+
<groupId>org.springframework.ws</groupId>
53+
<artifactId>spring-xml</artifactId>
54+
</dependency>
55+
<dependency>
56+
<groupId>org.springframework.ws</groupId>
57+
<artifactId>spring-ws-core</artifactId>
58+
</dependency>
59+
</dependencies>
60+
</project>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ public void quotes() throws IOException {
4646
Source requestSource = new ResourceSource(request);
4747
StringResult result = new StringResult();
4848
getWebServiceTemplate().sendSourceAndReceiveToResult(requestSource, new ActionCallback(action), result);
49+
System.out.println();
4950
System.out.println(result);
51+
System.out.println();
5052
}
5153

5254
public static void main(String[] args) throws IOException {
-8.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)