Re-Publish the Map Service
As part of your implementation, you and your Schneider Electric implementation team created the underlying map service that supports DHFC.
If you later perform updates to the underlying .mxd map document, you need to re-publish the service to share it with your users.
Regarding the layer names in the Table of Contents:
-
The application uses the layer names in the map service for mapping features and objects within the Schema.xml. Thus, if you change a name in the map service, you must also change it in the Schema.xml. For example, if you renamed the as-built RFCable to “CompanyRFCable” and the design RFCable_D to “CompanyRFCable_D,” then the Schema.xml would look like the following:
<Table CoaxName="RFCableData" EsriDesignName="CompanyRFCable_D" EsriBuiltName="CompanyRFCable">
-
Avoid spaces in the layer names as it makes it more difficult to map the names in the Schema.xml and could lead to string errors.
This topic provides the steps to re-publish the service. Subsequent topics discuss the settings inside the service.
To re-publish the service:
- Save the .mxd that is used as the source of the map service.
- Click File > Share As > Service...
- Choose Overwrite an existing service, then click Next.
- If prompted, type in your credentials, then click OK.
- Click the existing Service to highlight it in blue, then click Next.
- On the Service Editor dialog, click Publish.
- After you click Publish, the application automatically runs the Analyze task.
- Correct any errors and review any warnings. If you corrected errors, click Publish again.
- Click OK to close the success message.