The code download for this chapter also includes a
README.txt file, which gives detailed steps to build and run the samples.
We have a simple web service in the codebase present in the folder
ch10\ServiceMixHttpBinding\01_ws. To deploy the web service, first change
directory to the ch10\ServiceMixHttpBinding folder and execute the ant
command as follows:
cd ch10\ServiceMixHttpBinding
ant
Chapter 10
[ 191 ]
In fact, the build.xml file will call the build in the subprojects to build the web
service as well as the ServiceMix subproject.
The web service is built completely and the war file can be found in the folder
ch10\ServiceMixHttpBinding\01_ws\dist\AxisEndToEnd.war. To deploy the
web service, drop this war file into your favorite web server's webapps folder and
restart the web server, if necessary.
Now to make sure that your web service deployment works fine, we have provided
a web service test client. To invoke the test client, execute the following commands:
cd ch10\ServiceMixHttpBinding\01_ws
ant run
We can also check the web service deployment by accessing the WSDL from the URL:
http://localhost:8080/AxisEndToEnd/services/HelloWebService?WSDL
Let us list out the WSDL here, since we want to compare it with the WSDL accessed
from the ServiceMix binding later to cross check the similarities.
Pages:
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272