In this section, we will develop a web service that performs conversion of units of length. Our web service will have an operation that will convert inches to centimeters, and another operation to do the opposite conversion (centimeters to inches).
In order to create a web service, we need to create a new web application project, in our example, the project name is
UnitConversion. We can create the web service by right-clicking on our project and selecting File | New File, then selecting the Web Services category and Web Service as our file type.
After clicking Next>, we need to enter a name and package for our web ...