As we mentioned earlier, executable code needs to be generated from a web service's WSDL. A web service client will then invoke this executable code to access the web service.
The Java Development Kit (JDK) includes a utility to generate Java code from a WSDL. The name of the utility is wsimport. It can be found under $JAVA_HOME/bin. The only required argument for wsimport is the URL of the WSDL corresponding to the web service, for example:
The preceding command will generate a number of compiled Java classes that allow client applications to access our web service:
- CalculatorService.class ...