Редактиране

Споделяне чрез


<enableWebScript>

This element enables the endpoint behavior that makes it possible to consume the service from ASP.NET AJAX web pages.

<configuration>
  <system.serviceModel>
    <behaviors>
      <endpointBehaviors>
        <behavior>
          <enableWebScript>

Syntax

<enableWebScript />

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

None.

Child Elements

None.

Parent Elements

Element Description
<behavior> Specifies the set of endpoint behaviors.

Remarks

This behavior should only be used in conjunction with either the <webHttpBinding> standard binding, or the <webMessageEncoding> binding element. For more information on this behavior, see WebScriptEnablingBehavior.

See also