Populating the Data and Running Samples


In addition to the installation, build, and deployment steps, you can also run client-side code from the Ant environment. All of the targets for the pattern samples are available in the appropriate chapter. Before running the examples but after deploying new Web Services, you will want to populate some test data. You can do this with a simple client program that uses the Web Service business object collections. Use the populate target from the /java/WebServicesBook/bin directory as follows :

 ant populate 

From here on out, the data is not often updated. To repopulate the data, drop the wsbook database and re-create it using the contextual menus from the MySQL administration console, discussed in the section "Installing MySQL." Then, run the buildtables Ant target as identified in the section "Building the Examples." Finally, rerun the populate target.




Web Service Patterns
Web Services Patterns: Java Edition
ISBN: 1590590848
EAN: 2147483647
Year: 2003
Pages: 190

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net