print "Inicio teste"
arcpy.SetProgressorLabel("Iteration: 1")
arcpy.SetProgressorPosition(1)
arcpy.AddMessage("Teste1")
arcpy.AddMessage("Teste2")
#time.sleep(5)
arcpy.SetProgressorLabel("Iteration: 2")
arcpy.SetProgressorPosition(50)
arcpy.AddMessage("Teste3")
#time.sleep(5)
arcpy.AddWarning("Warning")
arcpy.SetProgressorLabel("Iteration: 3")
arcpy.SetProgressorPosition(100)
arcpy.AddIDMessage("INFORMATIVE", 12, "aaaaaaaaaaaaaaa")
arcpy.AddError("Erro")
print arcpy.GetMessageCount()
print arcpy.GetMessages()
for msg in range(0, arcpy.GetMessageCount()):
arcpy.AddReturnMessage(msg)
print "Fim teste"Solved! Go to Solution.
Did you specify you wanted to get messages in the Service Editor Parameters? See http://resources.arcgis.com/en/help/main/10.2/#/Parameters/005700000080000000/