Structure of the Code
There are three types of JavaScript code:
- Utilities
- Schema
- Service
Utilities
The utilities code is a fixed set of JavaScript that provides some browser compatibility and XML management. This code is delivered in the distribution in the file etc/cxf-utils.js. If you are using the ?js URL handler, it is delivered at the beginning of the response (unless you add ?nojsutils to the URL). If you are generating JavaScript using the tools, it is up to you to copy this file use it.
Schema Code
The Schema code generates one object for each 'bean' used in your service. This code is organized by XML Schema. The code for each schema starts with a comment like:
// // Definitions for schema: http://apache.org/hello_world_soap_http/types // file:/home/benson/cxf/trunk/distribution/src/main/release/samples/js_browser_client/wsdl/hello_world.wsdl#types1 //