验证sharepoint Web服务错误

时间:2013-04-17 16:21:55

标签: c# web-services visual-studio sharepoint

我正在尝试对authentication.asmx Web服务进行身份验证。

在visual studio中,我右键单击我的项目并单击“添加服务引用”。

我在我的地址中输入以下内容:

https://my-domain.com/sp/testsite/_vti_bin/Authentication.asmx

然后点击“开始”按钮。然后我得到以下错误。我可以通过浏览器访问网络服务,但没有任何问题,所以不确定我做错了什么。

The document at the url https://my-domain.com/sp/testsite/_vti_bin/Authentication.asmx was not recognized as a known document type.
The error message from each known type may help you fix the problem:
- Report from 'https://my-domain.com/sp/testsite/_vti_bin/Authentication.asmx' is 'The document format is not recognized (the content type is 'text/html; charset=utf-8').'.
- Report from 'DISCO Document' is 'There was an error downloading 'https://my-domain.com/_vti_bin/Authentication.asmx?disco'.'.
  - The request failed with HTTP status 404: Not Found.
- Report from 'WSDL Document' is 'The document format is not recognized (the content type is 'text/html; charset=utf-8').'.
- Report from 'XML Schema' is 'The document format is not recognized (the content type is 'text/html; charset=utf-8').'.
Metadata contains a reference that cannot be resolved: 'https://my-domain.com/sp/testsite/_vti_bin/Authentication.asmx'.
Metadata contains a reference that cannot be resolved: 'https://my-domain.com/sp/testsite/_vti_bin/Authentication.asmx'.
If the service is defined in the current solution, try building the solution and adding the service reference again.

0 个答案:

没有答案