Registers a Web service for use in a Web page.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
Thetype exposes the following members.
|Equals(Object)||Determines whether the specified object is equal to the current object. (Inherited from Object.)|
|GetHashCode||Serves as the default hash function. (Inherited from Object.)|
|GetProxyScript||Provides a proxy script from a derived object that can be overridden as a customization.|
|GetProxyUrl||Provides a proxy URL from a derived object can be overridden as a customization.|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToString||Returns a string that represents the value of the Path property or the type name. (Overrides Object::ToString().)|
The proxy objects will be used to do the following:
Initialize instances of proxies of server data types, in particular for use as input parameters for invoking Web methods.
The control can only be used for services in the same domain.
You can define the Web service location declaratively by adding an <asp:ServiceReference> element to the <Services> element inside the <asp:ScriptManager> element on the page, and then setting its Path attribute, as shown in the following example.
<asp:ScriptManager runat="server" ID="scriptManager"> <Services> <asp:ServiceReference Path="~/WebServices/SimpleWebService.asmx" /> </Services> </asp:ScriptManager>
You might use the InlineScript property to indicate whether the proxy generation script is included in the page as an inline script block or is obtained by a separate request.