string FindServiceShape(Guid workspaceId, Guid resourceId)
{
const string EmptyDataList = "<DataList></DataList>";
var resource = ResourceCatalog.Instance.GetResource(workspaceId, resourceId);
if(resource == null)
{
return EmptyDataList;
}
var serviceShape = resource.DataList.Replace(GlobalConstants.SerializableResourceQuote,"\"").ToString();
serviceShape = serviceShape.Replace(GlobalConstants.SerializableResourceSingleQuote,"\'");
return string.IsNullOrEmpty(serviceShape) ? EmptyDataList : serviceShape;
}
}