This question already has an answer here:

I'm trying to publish a large number of MXD files to my ArcGIS Server with an ArcPy script. Here's the overview of how I'm doing this

mapDoc = arcpy.mapping.MapDocument(...)
con = r'C:\...'
service = currentMXD[:-4]
sddraft = wrkspc + '\\sdfiles\\' + service + '.sddraft'
sd = wrkspc + '\\sdfiles\\' + service + '.sd'
arcpy.mapping.CreateMapSDDraft(mapDoc, sddraft, service, 'ARCGIS_SERVER', con, True, 'etc')
arcpy.StageService_server(sddraft, sd)
arcpy.UploadServiceDefinition_server(sd, con)

Pretty much following the example code of how to publish using an MXD file. Now, I want to add WFS and Feature Access capabilities when publishing these MXDs, which seems like it should be simple because you just need to check the boxes off when publishing manually, but I can't find how to do so. Does anyone know of a way to do so?

marked as duplicate by Midavalo, John Powell, Hornbydd, Andre Silva, Mapperz Aug 31 '16 at 14:16

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.