2011-01-11 82 views
2

給出如下配置試圖在使用Web服務(在PowerShell中)來訪問我的SharePoint網站我遇到的問題:如何使用Web服務訪問Sharepoint中的子站點列表?

  • 我的網站位於https://sharepoint.company.tld/sites/siteid/
  • 的WSDL從https://sharepoint.company.tld/_vti_bin/Lists.asmx獲取(從重定向https://sharepoint.company.tld/sites/siteid/_vti_bin/Lists.asmx

構建Web服務的DLL(以下these步)後,我做了

$list = New-Object Lists 

,並試圖獲得一個列表由它的GUID(知我):

$docs = $list.GetList("GUID-HERE") 

這將導致一個例外: screenshot 被它的名字檢索列表是一樣的。

做一個$list.GetListCollection()返回我知道的列表https://sharepoint.company.tld和是的,我的列表不在其中。只有一些包含webparts的列表應該用於真實網站和類似的東西。

所以,這裏的問題:有什麼辦法,我怎麼能告訴他們不得訪問https://sharepoint.company.tld下位於列表中的網絡服務,但搜索我的列表位於https://sharepoint.company.tld/sites/siteid/Lists

+0

如果粘貼完整的代碼,我可以準確地告訴你,你必須做出改變 –

回答

相關問題