Deploy the Web Service
As a first step, if you haven't done it before, edit examples.PROPERTIES (provided
along with the code download for this chapter), and change the paths there to match
your development environment. The code download for this chapter also includes a
README.txt file, which gives the detailed steps to build and run the samples.
We have a simple web service in the codebase present in the folder
ch11\WebServiceInJmsChannel\01_ws. To deploy the web service, first change the
directory to ch11\WebServiceInJmsChannel\01_ws and execute ant as shown
as follows:
cd ch11\WebServiceInJmsChannel\01_ws
ant
The web service will be completely built and the war file can be found in the folder:
ch11\WebServiceInJmsChannel\01_ws\dist\AxisEndToEnd.war.
To deploy the web service, just 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
two test clients. To invoke the test client run the following commands:
cd ch11\ServiceMixHttpBinding\01_ws
ant run
and/or
ant test
Chapter 11
[ 211 ]
We can also check the web service deployment by accessing the WSDL from the
following URL:
http://localhost:8080/AxisEndToEnd/services/HelloWebService?WSDL
The top-level folder, that is ch11\WebServiceInJmsChannel, will have a single
build.
Pages:
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299