public WebServiceCreationStatus DeployWebServiceFromPredictiveExperiment(WorkspaceSetting setting, string predictiveExperimentId, bool updateExistingWebServiceDefaultEndpoint)
{
ValidateWorkspaceSetting(setting);
Util.AuthorizationToken = setting.AuthorizationToken;
string queryUrl = StudioApi + string.Format("workspaces/{0}/experiments/{1}/webservice?generateNewPortNames=false{2}", setting.WorkspaceId, predictiveExperimentId, updateExistingWebServiceDefaultEndpoint ? "&updateExistingWebService=true" : "");
HttpResult hr = Util.HttpPost(queryUrl, string.Empty).Result;
if (hr.IsSuccess)
{
WebServiceCreationStatus status = jss.Deserialize<WebServiceCreationStatus>(hr.Payload);
return status;
}
else
throw new AmlRestApiException(hr);
}