AnsweredAssumed Answered

Publish a service with detailed parameters FAILS

Question asked by nareshaligeti on Jul 27, 2017
Latest reply on Jul 31, 2017 by nareshaligeti

I used this script as-is with some changes to the below variables,


username = raw_input("Enter user name: ")

password = getpass.getpass("Enter password: ")

# Ask for other necessary information

serverName = raw_input("Enter Server name: ")

serverPort = 6080

mxdPath = raw_input("Enter the path to the MXD: ")

msdPath = raw_input("Enter the desired path for the MSD: ")

jsonPath = raw_input("Enter the path to the JSON file: ")


I keep getting the below error, not sure what's wrong.


---> Error: JSON object returns an error. {u'status': u'error', u'code': 500, u'messa
ges': [u"JSON object for 'Service' is missing required attribute 'type'"]}
Error returned by operation. {"status":"error","messages":["JSON object for 'Ser
vice' is missing required attribute 'type'"],"code":500}


Could someone help? Thanks.