![]() SUrl = "/arcgis/admin/services/%s%s.%s" %(folder,item, item) If item = "GeometryServer":# and folder = "": # Loop through each service in the folder # Deserialize response into Python object Print "Processed folder information successfully. Print "Error when reading folder information. # Check that data returned is not an error object Print "Could not read folder information." ![]() HttpConn.request("POST", folderURL, params, headers) HttpConn = httplib.HTTPConnection(serverName, serverPort) # This request only needs the token and the response formatting parameter Token = getToken(username, password, serverName, serverPort) ![]() # Get the location and the name of the file to be created ServerName = raw_input("Enter server name: ") Password = getpass.getpass("Enter password: ") Username = raw_input("Enter user name: ") # Ask for admin/publisher user name and password # WMS, Max Records, Cluster, Cache Directory, Jobs Directory, Output Directory # ServiceName, Folder, Type, Status, Min Instances, Max Instances, KML, # Reads the following properties from services and writes them to a comma-delimited file:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |