Web 引用和服务引用之间的区别? [英] Difference between web reference and service reference?

查看:37
本文介绍了Web 引用和服务引用之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

WCF 中的 Web 引用和服务引用有什么区别?在 WCF 中哪个更可取?

What is the difference between web reference and service reference in WCF? Which is preferable in WCF?

推荐答案

这里的低级答案是 Web 引用将创建一个客户端代理类,该类允许您的代码与通过 WSDL 和通过 SOAP 或 HTTP GET 进行通信(其他海报表明它只是 ASMX,但 Web References 也可以与基于 Java 的 Web 服务或基于 Python 或 Ruby 通信,只要它们都使用 WSDL 并符合 WS-I 互操作性标准).

The low-level answer here is that a Web Reference will create a client proxy class that allows your code to talk to a Web Service that is described via WSDL and communicates via SOAP or HTTP GET (other posters indicate that it is only ASMX, but Web References can also talk to Java-based Web Services or Python-based or Ruby so long as they all talk WSDL and conform to the WS-I interoperability standard).

服务引用将创建一个与基于 WCF 的服务通信的客户端代理类:无论该 WCF 服务是否为 Web 服务.

A Service Reference will create a client proxy class that communicates with a WCF-based service : regardless of whether that WCF service is a Web Service or not.

这篇关于Web 引用和服务引用之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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