在asp.net中发现Web服务问题?

时间:2011-12-13 20:18:45

标签: c# asp.net web-services ssl

当我尝试将https Web服务添加到.net框架项目时。它低于错误。我尝试svcutil生成wsdl。仍然得到同样的错误。如何解决这个问题?

    The document at the url https://dev.company.com/webservices/spws/SharePoint/SharePointCustomerManagement.asmx was not recognized as a known document type.
The error message from each known type may help you fix the problem:
- Report from 'XML Schema' 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://dev.company.com/webservices/spws/SharePoint/SharePointCustomerManagement.asmx?disco'.'.
  - The request failed with HTTP status 404: Not Found.
- Report from 'https://dev.company.com/webservices/spws/SharePointAMSIntegration/SharePointCustomerManagement.asmx' is 'The document format is not recognized (the content type is 'text/html; charset=utf-8').'.
- Report from 'WSDL Document' 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://dev.company.com/webservices/spws/SharePoint/SharePointCustomerManagement.asmx'.
Metadata contains a reference that cannot be resolved: 'https://dev.company.com/webservices/spws/SharePoint/SharePointCustomerManagement.asmx'.
If the service is defined in the current solution, try building the solution and adding the service reference again.

更新:这是代理网址(https)。实际的.asmx文件位于http服务器上。

0 个答案:

没有答案