Is there a way to edit multiple map service connections for a site?
Instead of individually editing the map service connection path for each layer in my site, since they are all changing from, and to, the same servers, is there a way to edit the connection path one time and have them all update? Also, is this possible to do for all my sites on a server at once?
0
-
Hi Lee,
You can manually edit the site.xml file for the site and do a find/replace. I would be sure to step through and replace all the found instances individually as opposed to doing a bulk "replace all". The section of code to look for will look something like this -
<MapServices>
<FeatureLayer ConnectionString="url=https://....
I would perform the find on the text "ConnectionString=" and make sure the found text is for a map service connection and one that you are sure you want to change.
I would also make a backup copy of the file because the file is your site, if it goes bad, your site is gone!
We don't recommend editing the site.xml file but in a case like yours, it can save a lot of time. Make sure Essentials Manager is not open if you edit the file, you don't want to be editing the same file using two methods at the same time.
Regards,
Wayne Richard
Latitude Geographics Group Ltd.
Head Office: 300 – 1117 Wharf Street Victoria, BC Canada V8W 1T7
Tel: (250) 381-8130 | Fax: (250) 381-8132 | wrichard@latitudegeo.com
Developers of Geocortex web-based mapping software | www.geocortex.com
An Esri Platinum Business Partner0 -
Oh right, the site's xml file! Thanks Wayne! Your reply is a good reference...I'm saving that! 0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare