Publishing map service as WMS through REST

Discussion created by mortac8 on Oct 2, 2010
Latest reply on Oct 12, 2010 by a.schaefer-esri-de-esridist
In GeoServer, I can use the REST API to:
1) Create a workspace
2) Upload a shapefile as the datastore for the workspace
3) View the created workspace as a WMS layer

Is there a way to do the same thing with the ArcGIS Server REST API?  I want to be able to access it via WMS, so I need a Map Service, right?  How can I create a Map Service through the ArcGIS Server REST API?