Java Reference
In-Depth Information
com/bemach/data/DbConfig.class com/bemach/data/DbConnection.class com/
bemach/data/Employee.class com/bemach/data/EmployeeDao.class
From the standpoint of business, EmployeeDao should be tested to ensure that it works at
the level of the basic unit. All operations of the classes were thoroughly tested to ensure
that the classes work.
4.2.4 Develop Java Classes for Web Services
To create a Java project under Eclipse IDE, please refer to Chapter 7. Import two libraries (i.e.,
data-svc. jar and MySQL JDBC driver) into the lib folder under java-ws project. Also,
make sure to have these libraries in the Java Build Path. Refer to the previous section for
instructions on how to make reference to the libraries for a Java project in Eclipse.
We develop a Web Service for employee with two different styles: document and RPC. First,
we create a Java project called 'java-ws. After we finish coding the required Java classes, the
java-ws project should appear as follows:
Search WWH ::




Custom Search