public void RemoveWebServiceById(WorkspaceSetting setting, string webServiceId)
{
ValidateWorkspaceSetting(setting);
Util.AuthorizationToken = setting.AuthorizationToken;
string queryUrl = WebServiceApi + string.Format("workspaces/{0}/webservices/{1}", setting.WorkspaceId, webServiceId);
HttpResult hr = Util.HttpDelete(queryUrl).Result;
if (!hr.IsSuccess)
throw new AmlRestApiException(hr);
}
#endregion