This section we'll create a service interface based on the example in previous section, Creating a service provider, to build a complete and fully user-defined service interface.
The example in previous section, Creating a service provider, has completed the following items:
- Implement the service component, service provider, and their configuration.
- The service component uses the dependency injection method of SuperMap iServer to call service providers.
- The service component uses the annotation to confirm its service provider type.
- Publish domain service component by using SuperMap iServer REST.
Here we'll implement a custom service interface "TemperatureServlet" based on Servlet and publish the service component finished in previous section with this interface. Main contents:
- Implementing a service interface
- Refactoring the service component
- Configuring the service
- Publishing the service