root/trunk/Chapter09/Poker-WS/README.txt

Revision 108, 1.9 KB (checked in by wallsc, 3 years ago)

Cleaned up and added a README.txt

Line 
1This project is the Poker web-service example from Chapter 9 of Spring
2in Action, 2nd Edition. However...
3
4I very stupidly used a SNAPSHOT version of Spring-WS when building the
5original application contained in the book. The problem with SNAPSHOT
6version is that they're volatile and likely to change. Guess what?
7Spring-WS changed.
8
9Consequently, the original Poker-WS application in the book and
10distributed with the main SiA source code distribution won't work and
11won't build. That's the risk of working with a pre-1.0 release.
12
13This version of the Poker-WS project builds against Spring-WS
141.0.2. The good news is that what you're looking at is the latest and
15greatest and works against a post-1.0 version of Spring-WS. The bad
16news, however, is that some of the code contained herein (especially
17the client code) will be different than what's in the book.
18
19There's also another good news side to this story: I've reworked the
20client examples to run as an integration test (see the code in
21src/test/java/com/springinaction/poker/itest). And, I've tweaked
22pom.xml so that you can run the web service and the integration test
23from Maven.
24
25For example, to start a Jetty server with the poker web service
26deployed, run this at the command line:
27
28    % mvn package cargo:start
29
30To prove this works, point your browser at
31http://localhost:8080/Poker-WS/poker.wsdl. You should see the
32WSDL for the poker web service.
33
34Optionally, you can start the web service in Jetty *and* execute the
35integration tests against it with the following command line:
36
37    % mvn integration-test
38
39This will compile the code, run the unit tests, start the Jetty
40server, deploy the service, execute the integration test, then stop
41the Jetty server.
42
43Again, sorry for the confusion that may have been caused by my poor
44decision to use a SNAPSHOT release of Spring-WS. Hopefully the
45improvements I've made in the example will in some way make amends.
46
47Enjoy,
48Craig
Note: See TracBrowser for help on using the browser.