在 asp .Net Core 项目中添加 wsdl web 引用 [英] Adding wsdl web reference in asp .Net Core project

查看:130
本文介绍了在 asp .Net Core 项目中添加 wsdl web 引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有网络服务 http://www.mcommunicator.ru/m2m/m2m_api.asmx?WSDL我在从 Visual Studio 2015 连接到它时遇到了问题在我的 Web API 项目中

I've got web service http://www.mcommunicator.ru/m2m/m2m_api.asmx?WSDL And I've got a problem with connecting to it from Visual Studio 2015 in my Web API project

不再有添加网络引用"我试图添加的是:参考->添加连接的服务->WCF服务-预览它通过我的地址找到 1 个 Web 服务,但单击完成时出现错误.我想这不是 WCF 服务,这就是我收到错误的原因.但我没有看到任何其他方法可以添加它.请帮帮我.

There is no "Add web reference" anymore I've tried to add is with: References-> Add connected Service -> WCF Service - Preview It finds 1 web service by my address, but I get an error when click finish. I guess it's not a WCF service, that's why I get an error. But I don't see any other ways to add it. Please, help me.

推荐答案

要为基于 WCF for .NET Core 1.0 构建的客户端添加 SOAP 服务引用,请安装扩展 Visual Studio WCF Connected Service通过扩展和更新"对话框.

To add the SOAP service references for clients built on top of WCF for .NET Core 1.0 install the extension Visual studio WCF Connected Service via the "Extensions and Updates" dialog box.

安装后,在解决方案资源管理器中,右键单击引用项目项,然后单击添加连接服务选项.

After installed, In Solution Explorer, right-click on the References project item and then click on the Add Connected Service option.

添加连接服务"对话框出现,您应该有一个新选项WCF 服务 - 预览".

The Add Connected Service dialog box appears and you should have a new option "WCF Service - Preview".

这篇关于在 asp .Net Core 项目中添加 wsdl web 引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆