我有一個問題,訪問Web服務的WSDL爲SharePoint列表,網站等的SharePoint開箱即用的Web服務的ASMX到WSDL轉換工作不
我可以看到使用下列URL操作的列表:
http://test.com/_vti_bin/Lists.asmx - 返回開箱即用的服務
http://test.com/_vti_bin/sites.asmx操作的列表 - 爲開箱即用的服務返回操作的列表
然而,當我嘗試使用以下URL來查看WSDL文檔:
http://test.com/_vti_bin/Lists.asmx?wsdl - 返回404錯誤
http://test.com/_vti_bin/sites.asmx?wsdl - 返回404錯誤
在測試環境,我可以看到返回的WSDL,但是,它的生產如上所述返回404錯誤。
我也是在日誌中看到此消息:
錯誤頁面:http://test.com/_vti_bin/wswsdl.aspx?WSDL System.Web.HttpUnhandledException:類型System.Web.HttpUnhandledException「的異常被拋出。 ---> System.IO.FileNotFoundException:沒有名爲「/careers/Pages/_vti_bin/sites.asmx」的Web。
看起來,asmx對wsdl coversion在生產環境中效果不佳。任何想法將不勝感激。
我也確保將"<protocols><add name="Documentation"/></protocols>"
添加到webservice的web.config的WebServices元素。