When the generation function is performed, the following files are generated.
File | Provides |
---|---|
Classes.js | Generic type-safe class framework |
WSUtil.js | Generic essentials required to invoke Web services |
Web-service_types.js | Types exposed by the Web service |
Web-service_api.js | JavaScript methods to invoke the Web service methods |
Web-service_testharness.html | Sample Web application used to check the framework is functioning correctly |
There are dependencies among these files. When including them within an HTML file, include the .js files in the order listed in the above table.
The WSUtil.js and Classes.js files are independent of the specific Web service. If the JavaScript needs to invoke two or more separate Web services, it therefore requires only one copy of these files.
For each Web service, the corresponding Web-service_api.js and Web-service_types.js files are required.
For details about the generated JavaScript, see the following subsections.