可以在ASP.NET 2.0 Web站点引用WCF Web服务? [英] Can an ASP.NET 2.0 Web site reference WCF Web Services?

查看:141
本文介绍了可以在ASP.NET 2.0 Web站点引用WCF Web服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的公司目前拥有其部署在Windows 2000操作系统,这意味着我们只能在该计算机上安装.NET 2.0的Web站点。升级Web服务器操作系统是不可能的,因为这个Web服务器也承载了我国其他Web应用程序。由于还有部分我们的IT政策的,出于安全原因的网站是不允许​​直接访问数据到我们的数据库。这就是为什么遵守这一限制,我们有另一个服务器的Web服务的部署。这个应用程序服务器当前已安装的.NET 3.5 SP1,因此WCF服务是可行的。

Our company currently has a web site which is deployed in Windows 2000 OS, which means that we could only install .NET 2.0 on that machine. Upgrading the Webserver OS is out of the question, since this web server also hosts other web applications in our country. As also part of our IT's policy, for security reasons the web sites are not allowed to directly access data to our database. That 's why to comply with this restrictions, We have another Server where the Web services is deployed. This "app server" currently has .Net 3.5 SP1 installed, hence WCF Services is possible.

我的问题是,如果有可能通过我们的托管只.NET 2.0 ASP.NET网站上添加WCF Web服务的Web引用。

My question is if it is possible to add a web reference on WCF Web services through our ASP.NET Web site that hosts only .NET 2.0.

推荐答案

当然可以。如果WCF服务使用 basicHttpBinding的绑定,那么这将是所有SOAP 1.1客户端兼容,其中包括添加Web引用。

Of course you can. If the WCF service uses the basicHttpBinding binding, then it will be compatible with all SOAP 1.1 clients, including "Add Web Reference".

这篇关于可以在ASP.NET 2.0 Web站点引用WCF Web服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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