Extending the Web Services
The web service infrastructure allows you to extend the existing web services easily.
To extend a web service,
1. Implement the new method in the Jetty Worker. In most cases the existing functionality of Creo Elements/Direct Model Manager can be used.
2. Expose the method of the Jetty Worker as a Remote Method Invocation (RMI) interface, as follows:
a. Define the RMI interface.
b. Wrap the method implemented in the Jetty Worker (Step 1), into an RMI method.
c. Register the new RMI interface of the Jetty Worker in the ServiceControllerConfig.xml.
3. Define a corresponding web service method on the Jetty Server. Typically the implementation of the web service method forwards the call to the Jetty Worker through the RMI interface defined earlier (Step 2).
4. Expose the new web service method by listing the new method in the web service’s XML files.