Asp – Can an ASP.NET 2.0 Web site reference WCF Web Services

.net-3.5asp.netasp.net-2.0netwcf

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.

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.

Best Answer

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".