Gets or sets the base URL of the XML Web service the client is requesting.
Assembly: System.Web.Services (in System.Web.Services.dll)
Proxy classes generated using Wsdl.exe will set a default property for the client to use. The default is determined by the location attribute found in the service description from which the proxy class was generated.
The property can be changed to refer to any XML Web service that implements the same service description that the proxy class was generated from.
The following example changes the property for the math XML Web service to the Web server named http:// www.contoso.com.
// Set the URL property to a different Web server than that described in the // service description. math.Url = "http://www.contoso.com/math.asmx"; int total = math.Add(Convert.ToInt32(Num1.Text), Convert.ToInt32(Num2.Text));
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.