Поделиться через


marketingWebService Element

The marketingWebService element lets you configure the behavior of the Marketing Web service. This element is required, and should be used only in the web.config file for the Marketing Web Service (<drive>:\Inetpub\wwwroot\MarketingWebService\Web.config).

Note

The server does not apply any changes made to this element until you restart the Web application by using IISReset.

The following table lists and describes the attributes of the marketingWebService element.

Attribute

Data type

Description

siteName

String

The site name.

This attribute is required.

authorizationPolicyPath

String

The path to the authorization policy file.

This path can be a full path or a relative path. If you do not specify a full path, then the path will be relative to the physical directory of the Marketing Web service.

This attribute is optional.

disableAuthorization

String

Determines whether the Marketing system performs authorization checks. You can set the value of this attribute to enable or disable authorization for this site.

If the value of this attribute is true, the Marketing system will not perform authorization checks and all methods are enabled, with the exception of GetAuthorizedTasks, which cannot function without a policy. If false, authorization policy is enforced. The default is false.

This attribute is optional.

maxUploadChunkSize

String

The maximum upload chunk size, in kilobytes, the client should use in chunked uploads of promotion code files. This setting should be less than the value of the maxRequestLength attribute that is in effect for ASP.NET to account for the overhead of HTTP and SOAP headers and encoding.

The value of this attribute must represent an integer. The default value is 2048. The value specified must be greater than zero or a ConfigurationException occurs. The default maximum request size in ASP.NET is 4096, but this can be configured in the Web.config or machine.config files under the httpRuntime elements, in the maxRequestLength attribute.

This attribute is optional.

sqlCommandTimeoutSeconds

String

An integer that specifies the maximum amount of time, in seconds, the Web server will wait for an SQL command to complete execution.

The value of this attribute must represent an integer. The default value is 30 seconds.

This attribute is optional.

sqlLongRunningCommandTimeoutSeconds

String

An integer that specifies the maximum amount of time, in seconds, the Web server will wait for a long-running SQL command to complete execution.

The value of this attribute must represent an integer. The default value is 120 seconds.

This attribute is optional.

sqlPcgCommandTimeoutSeconds

String

An integer that specifies the maximum amount of time, in seconds, the Web server will wait for a Promo Code Generator SQL command to complete execution.

The value of this attribute must represent an integer. The default value is 60 seconds.

This attribute is optional.

sqlPcgLongRunningCommandTimeoutSeconds

String

An integer that specifies the maximum amount of time, in seconds, the Web server will wait for a long-running Promo Code Generator SQL command to complete execution.

The value of this attribute must represent an integer. The default value is 600 seconds.

This attribute is optional.

Note

You must supply a value for authorizationPolicyPath if disableAuthorization is set to false. If disableAuthorization is set to true the authorizationPolicyPath is ignored.

Example

  <marketingWebService
    siteName="CSharpSite"
    authorizationUrl="MarketingAzManPolicy.xml"
    disableAuthorization="false"
    maxUploadChunkSize="2048"
    sqlCommandTimeoutSeconds="60"
    sqlLongRunningCommandTimeoutSeconds ="200"
  />

See Also

Other Resources

Web.Config Configuration Settings