我想连接到此网络服务
https://training-api.temando.com/schema/2009_06/server.wsdl https://training-api.temando.com/schema/2009_06/server.wsdl
我尝试过“添加服务引用”和“添加 Web 引用”,但在这两种情况下都出现此错误:
下载时出现错误
'https://training-api.temando.com/schema/2009_06/server.wsdl/_vti_bin/ListData.svc/ https://training-api.temando.com/schema/2009_06/server.wsdl/_vti_bin/ListData.svc/$元数据'。
请求失败,HTTP 状态为 404:未找到。
URL 的这个额外部分通常用于 Web 服务还是专门用于 WCF?
我该怎么办?
提前致谢。
您应该做的是将 WSDL 文件下载到您的计算机上并使用svcutil.exe
直接从 WSDL 生成代码的工具。
See 这个问题 https://stackoverflow.com/questions/950150/how-to-use-a-wsdl-file-to-create-a-wcf-service-not-make-a-call有关如何完成此操作的示例。
我相信您正在做的事情称为 WSDL-First 开发。更详细的链接是here http://blogs.msdn.com/b/dotnetinterop/archive/2008/09/24/wsdl-first-development-with-wcf.aspx.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)