public RefDataEntities SearchPage(string query, string start, string limit, string repositories) { int startIdx = 0; int pageLimit = 0; int.TryParse(start, out startIdx); int.TryParse(limit, out pageLimit); OutgoingWebResponseContext context = WebOperationContext.Current.OutgoingResponse; context.ContentType = "application/xml"; return(_referenceDataProvider.SearchPage(query, startIdx, pageLimit, repositories)); }