Matshopp

arcpy Service Layer doesn't support Service Properties

Discussion created by Matshopp on Jun 20, 2013
Latest reply on Sep 5, 2014 by markusschenardi
Hello,

I've got a mxd that only contains ArcGIS MapServices :

So I'm like :

for myLyr in arcpy.mapping.ListLayers(mxd):
    print ("Is this service layer ? : " + str(myLyr.isServiceLayer))
    print ("Does it support service properties ? : " + str(myLyr.supports("SERVICEPROPERTIES")))


Then I get :

Is this service layer ? : True
Does it support service properties ? : False
Is this service layer ? : True
Does it support service properties ? : False
Is this service layer ? : True
Does it support service properties ? : False


In ArcGIS help center, from the Layer class,  I read :

serviceProperties : "Provides access to connection information for ArcSDE and web service layers. etc"
isServiceLayer : "Returns True if a layer is a GIS service layer. GIS services are automated geographic information services that are published and accessed over the web using standard technologies and protocols."

Can someone highlight me about this flagrant contradiction ?

Thank you,
Matt

Outcomes