It is to
this target that the HTTP Client sends the XML request.
Build and Run the Sample
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 detailed steps to build and run the samples.
Java XML Binding Using XStream
[ 236 ]
To build and run the sample, first change directory to ch12\JavaXmlBinding folder
and execute ant as shown here:
cd ch12\JavaXmlBinding
ant
We can bring up ServiceMix by running the following commands:
cd ch12\JavaXmlBinding
%SERVICEMIX_HOME%/bin/servicemix servicemix.xml
When we start ServiceMix, the JBI container is configured using the above
servicemix.xml file.
To run the demo, there is a Client.html file provided in the top-level folder.
Summary
You have already deployed POJO components into ServiceMix and exposed them as
services. An external client can invoke the POJO services by sending SOAP requests
and receiving back the SOAP responses.
Pages:
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328