docs: def createService(self, service):
          """
          Creates a new GIS service in the folder. A service is created by
          submitting a JSON representation of the service to this operation.
          """
          url = self._url + "/createService"
          params = {
              "f" : "json"
          }
          if isinstance(service, str):
              params['service'] = service
          elif isinstance(service, dict):
              params['service'] = json.dumps(service)
          return self._post(url=url,
                               param_dict=params,
                               securityHandler=self._securityHandler,
                               proxy_url=self._proxy_url,
                               proxy_port=self._proxy_port)