July 20, 2002 - Web Service Proxy | WebReference

July 20, 2002 - Web Service Proxy

Yehuda Shiran July 20, 2002
Web Service Proxy
Tips: July 2002

Yehuda Shiran, Ph.D.
Doc JavaScript

ASP.NET pages cannot interact directly with Web services. You need to create a proxy for the Web service you want to consume in your ASP.NET code. A proxy is a special component that masquerades as the service. The proxy insulates you from the location of the actual service. The location is captured once, when the proxy is created, and from then on you don't have to worry about where the Web service is. Creating a proxy for a Web service converts the Web service to a local component. In general, when you want to call a local component from your code, you need to access the component's class definition including its namespace, as well as its binary realization in the form of a dll. That's exactly what you get when you create a proxy for a Web service:

dll) file

To learn more about JScript .NET and ASP.NET, go to Column 113, JScript .NET, Part VII: Consuming add from ASP.NET.