Tag: odata

Powerpivot Odata提供凭据

我创build了一个托pipe在安全服务器上的OData Web服务,为了访问这些服务,用户需要提供凭证,然后使用cookie(TMG Fore Front Server Forms)进行身份validation, 我如何向Table Import Wizard > Connect to a Data Feed提供凭据? 当我进入svc并进行testing连接时,会得到401。 更新 安静的奇怪,但它给了我401如果button点击后,将url放入它,但现在我再次尝试从开始,而不是添加url,点击前进button,这是我现在可以看到, 现在如果我添encryption码和userid,我得到这个错误, ============================ Error Message: ============================ The remote server returned an error: (401) Unauthorized. ============================ Call Stack: ============================ at System.Net.HttpWebRequest.GetResponse() at Microsoft.AnalysisServices.Common.DataSourceBasic.UpdateDataFeedParametersInternal(ConnectionStringBuilder connBuilder, IDataSource dataSource, Boolean checkFeedValid, Boolean fKeepAlive) at Microsoft.AnalysisServices.Common.DataSourceBasic.UpdateDataFeedParameters(ConnectionStringBuilder connBuilder, IDataSource dataSource, Boolean checkFeedValid) at Microsoft.AnalysisServices.Common.DataSourceBasic.GetCurrentConnectionString(Boolean […]

在Excel电源查询中使用带有参数的OData提要

我正在使用Excel中的强大查询function,并需要从OData提要中获取一些数据。 对于不需要参数的馈送动作,一切都很好,但是我如何使用OData馈送并将parameter passing给它? 例如: http:// url / odata / employees ('00090') 上面的代码在查询时抛出一个错误,但是从Web浏览器中可以正常工作 谢谢

如何在Excel Power Query中将参数化值传递给OData Feed

我创build了一个需要filter的OData服务。 此OData服务将通过Micorsoft Excel – Power Query中的OData Feed选项进行访问。 ODataurl – : http://176.0.11.79:8000/sap/opu/odata/sap/Z_SALES_REPORT_TUBES_SRV/et_sales_report_tubesSet?$ filter = Spmon eq'20161101' 现在我需要传递Spmon'20161101'的过滤值作为参数。 该值存在于同一个excel的另一个表中。 如何更改查询以允许从表单传递数据,而不是每次都更改URL。

带有小数的.NET OData错误:types不匹配

我目前正试图摆脱OData错误,这看起来像一个小数parsing/反序列化的问题。 我在ASP.NET MVC应用程序中使用OData API(使用System.Web.Http.OData库),用户可以下载指向OData API的OData Feed文件* .odc。 当OData API响应中有小数时,如 <d:Value m:type="Edm.Decimal">50.50</d:Value> 并且用户想要在Excel中打开OData Feed文件(在Excel 2016上testing)来获取数据,他会得到一个错误: We couldn't get data from the Data Model. Here's the error message we got: The following system error occurred: Type mismatch. 什么是intersting是没有错误,当十进制值没有小数部分,如下所示: <d:Value m:type="Edm.Decimal">50.00</d:Value> 这里是完整的API响应(挖掘出url): <?xml version="1.0" encoding="utf-8"?> <feed xml:base="xxxxxxxxx" xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss" xmlns:gml="http://www.opengis.net/gml"> <id>http://schemas.datacontract.org/2004/07/</id> <title /> <updated>2016-06-22T11:01:10Z</updated> <link rel="self" […]

PowerPivot不会将基本身份validation中的授权标头发送到OData Svc

质量保证 – 我知道答案。 我已经创build了一个WCF数据服务OData端点和它的所有作品,PowerPivot连接,我build立了一些数据透视表。 然后,我实现了一个基本身份validationHTTP处理程序,该程序向401 WWW-Authenticate请求链接提出未授权的请求, http://www.asp.net/web-api/overview/security/basic-authentication 这适用于IE; 浏览器会popup一个凭据input对话框,IE继续将头部与随后的请求连接起来,并对其进行caching。 在Excel中,我可以看到它发送Authorization标头以响应最初的挑战,但是它不caching证书并在下一个请求中发送标头。 一切都按照PowerPivot说明进行设置。

从Tableau 8.1访问OData Feed时,OData格式不正确

我无法连接到OData提要,因为我得到这个错误消息:“不良OData格式。请确保您使用的URL指向一个有效的OData来源” 我可以在浏览器中访问url(并获得预期的JSON响应),并且可以通过Excel(Power Query)连接到OData feed。 有没有人有类似的问题? 你认为这个问题是什么? 我在Windows 8上使用Tableau 8.1,并通过ASP.NET Web API 2开发我的OData服务。

ASP.NET OData v3 vs Excel 2013:忽略分页?

我正在尝试将OData Web Api与Excel 2013集成,但是我正面临一些麻烦 场景: 大型数据库视图,大约40百万行(MySQL) 数据库第一EDMX(entity framework6.1.0) EntitySetController.Get()将数据提供给客户端(WebApi 2.1) Excel 2013消耗OData提要 我的服务器端代码必须考虑到后面的巨大数据,所以我用[Queryable(PageSize=50)]装饰我的Get() public class SerieValuesController : EntitySetController<SerieValue, int> { #region DB Property private EDMWarehouseViewsContainer _DB = null; public EDMWarehouseViewsContainer DB { get { if (_DB == null) _DB = new EDMWarehouseViewsContainer(); return _DB; } } #endregion [Queryable(PageSize=50)] public override IQueryable<SerieValue> Get() { var options […]

自动Socrata下载

我需要从Socrata无人值守下载数据,即程序按计划启动并运行,下载数据,然后结束; 全部没有人的互动。 我发现通过OData下载到Excel的参考,并认为我会尝试,因为我可以安排一个Excel进程无人看pipe。 我有Excel 2010,但在从其他源获取外部数据下拉列表中没有提及OData。 如何将OData添加到其他来源的下拉列表中? 谢谢。

是否有可能使用MS Excel在OData源上的所有CRUD操作?

我有以下OData控制器,它提供了所有常见的CRUD操作: public class ProductsController : ODataController { ApplicationDbContext db = new ApplicationDbContext(); private bool ProductExists(int key) { return db.Products.Any(p => p.Id == key); } protected override void Dispose(bool disposing) { db.Dispose(); base.Dispose(disposing); } [EnableQuery] public IQueryable<Product> Get() { return db.Products; } [EnableQuery] public SingleResult<Product> Get([FromODataUri] int key) { IQueryable<Product> result = db.Products.Where(p => p.Id == […]

无法在Excel中使用Web API OData v3 feed

我有一个自托pipe的Web API OData v3服务: public class Startup { public void Configuration(IAppBuilder app) { HttpConfiguration config = new HttpConfiguration(); config.Routes.MapHttpRoute( name: "DefaultApi", routeTemplate: "api/{controller}/{id}", defaults: new { id = RouteParameter.Optional } ); ODataModelBuilder builder = new ODataConventionModelBuilder(); builder.EntitySet<Product>("Products"); config.MapODataServiceRoute( routeName: "ODataRoute", routePrefix: null, model: builder.GetEdmModel()); app.UseWebApi(config); } } 我也有以下控制器,它公开了一个完整的CRUD: public class ProductsController : ODataController { ApplicationDbContext […]