This documentation is archived and is not being maintained.

<maxMessageLength> Element

Specifies the maximum size for incoming SOAP messages to a Web service or a Web service client.

<microsoft.web.services3> Element
  <messaging> Element

<maxMessageLength value="1024" />


Attribute Description


Specifies the maximum message size, in kilobytes (KB), supported by WSE. A value of -1 specifies that there is no limit. The default is 4096 KB (4 MB). The maximum value is 2,147,483,647.

Child Elements


Parent Elements

Element Description

<messaging> Element

Controls the messaging settings for the Microsoft Web Services Enhancements.

Use the <maxMessageLength> element to prevent denial of service attacks caused by users posting large files to the server.

Before adding the <maxMessageLength> element to a configuration file, you must add the microsoft.web.services3 configuration section handler to the configuration file. For details about adding the microsoft.web.services3 configuration section handler, see <section> Element.

The following code example specifies that messages must be less than 1024 KB (1 MB) in size.

      <maxMessageLength value="1024" />