在ASP .NET Core项目中添加WSDL Web参考 [英] Adding wsdl web reference in asp .Net Core project

查看:1136
本文介绍了在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天全站免登陆