2016-04-25 79 views
1

我创建了以安全服务器托管的OData的Web服务来访问这些服务,用户需要提供然后把它使用的cookie(TMG富勒接待Server表单)的PowerPivot OData源提供凭据

如何验证的凭据我可以提供凭证Table Import Wizard>Connect to a Data Feed

当我输入svc并进行测试连接时,会得到401。

更新

安静奇怪,但它给了我401如果按钮将链接到它后点击,但现在我从开始尝试,而不是添加URL再次,点击前进按钮,这就是我现在可以看到现在,

enter image description here

如果我添加的密码和用户ID,我得到这个错误,

============================ 
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 checkFeedValid) 
    at Microsoft.AnalysisServices.Common.DataSourceBasic.ClickTestConnection(Object progressControl) 
+0

哪个版本的OData的? – War

+0

@wadry V3,但我不确定它是否会改变任何内容 – Mathematics

回答

1

因为我碰巧知道这是你一直在我一个SharePoint基础的解决方案想这应该是有关...

https://msdn.microsoft.com/en-us/library/ee210671(v=sql.120).aspx

...和动力支点在Excel中添加上...

https://support.office.com/en-gb/article/Connect-to-an-OData-feed-Power-Query-4441a94d-9392-488a-a6a9-739b6d2ad500

...点击“从OData源”,在菜单中的选项,您可以选择建立一个查询,你也可以指定凭据。

设置查询让你做到这一点的能力...

https://blog.crossjoin.co.uk/2014/03/26/working-with-web-services-in-power-query/