2012-05-07 69 views
0

我想改變對TFS倉庫和TFS立方做報告的生成之間的時間間隔,利用this post on stackoverflow.調用TFS 2010 Web服務

但是在過程中,我似乎不具備對話和「調用」命令得心應手能夠進行更改TFS服務器,相反,我看到:

POST /tfs/TeamFoundation/Administration/v3.0/WarehouseControlService.asmx HTTP/1.1 Host: Content-Type: application/soap+xml; charset=utf-8 Content-Length: length

<?xml version="1.0" encoding="utf-8"?> 
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> 
    <soap12:Body> 
    <ChangeSetting xmlns="http://schemas.microsoft.com/TeamFoundation/2005/06/Services/Controller/03"> 
     <settingId>string</settingId> 
     <newValue>string</newValue> 
    </ChangeSetting> 
    </soap12:Body> 
</soap12:Envelope> 

難道我沒有必要的權限,以應用更改,或者是它的需要改變的TFS設置,以便我可以調用我們b服務?無論如何,我需要知道如何調用TFS Web服務。

編輯 我發現我沒有必要的權限來更改所需參數:

Error: Access Denied: [...] needs the following permission(s) on the resource Warehouse to perform this action: Administer Warehouse

+0

你是否從TFS服務器的計算機上執行此操作?我的意思是,如果您沒有直接登錄到TFS服務器(在RDP中,如果您無權訪問物理計算機),則最好使用TFS Admin帳戶,否則它將不起作用。 – Nock

回答