Publishing the service |
Since the user-defined service interface has not been implemented, we still publish the Temperature service component as a SuperMap iServer REST resource. For details on the mechanism to automatically detect services and publish them as REST services, please see: Publishing the domain service component as REST resources.
Start SuperMap iServer service, the link of the newly added Temperature service will be shown on the services page (http://localhost:8090/iserver/services).
Figure 1. Available service list
Click on the service link, and enter domainComponents, we can see the Temperature component has been published as a resource, and its methods have been published as resources too.
Figure 2. Temperature service component resource
In Figure 3, we notice that the resource names here are different from the ones in the section Creating a service component. SuperMap iServer REST treats different methods differently when publishing them as resources. For related information, please see: Publishing the domain service component as REST resources.
Figure 3. Temperature method resources