Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

List Map Services - Function Error

$
0
0
Hi!

Using this tool looks so easy (acording to http://help.arcgis.com/en/arcgisdesk...000004s000000/), but it is not working for me :( ...

My code:
Code:

import arcpy
serviceList = arcpy.mapping.ListMapServices("http://sampleserver1.arcgisonline.com/arcgis/services","sampleserver1.arcgisonline.com")
for serviceName in serviceList:
    print serviceName

And Im still getting "IOError: Object: Connection error ?"... What is wrong? Can someone help, please?

eddit: version ArcGIS 10.0 SP5, Python 2.6.5, target ArcGIS Server 10.0 SP4 (I think)

Viewing all articles
Browse latest Browse all 2485

Trending Articles