Update map service server paths in MXD

Discussion created by lbrannon on Oct 2, 2013
Latest reply on Oct 7, 2013 by lbrannon
I have an mxd (10.1) with roughly 15 map services added in as layers in the map. These map services are from our in-house ArcGIS Server (10.1).

I need to update the server path on each map service link in the mxd so they will display on the map - this is because we lost a server port and need to use our other server port (both ports are (were) setup on our ArcGIS Server to allow map service consumption by clients). This seemed like a good use of arcpy.mapping scripting so I tried to use

mxd.findAndReplaceWorkspacePaths(OLDfolderPath, NEWfolderPath)

to accomplish this task. No luck. No error returned, just no update to the map service server paths in the mxd. Should the function above work in this situation or is there another function I should be using to automate this task?

** See attached Python script