Hi,

If you set up an basicHttpBinding in your config file then you can set the
MaxReceivedMessageSize.  Alternatively, you can do this in code.  I believe
int.MaxValue is the largest valid value. Config example below:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <system.serviceModel>
        <bindings>
            <basicHttpBinding>
                <binding name="LargeFiles"
maxReceivedMessageSize="2147483647"
                    messageEncoding="Mtom" />
            </basicHttpBinding>
        </bindings>
    </system.serviceModel>
</configuration>

Cheers
James


On 8/20/07, Nicolas Roy <[EMAIL PROTECTED]> wrote:
>
> I'm using HTTP binding and MTOM encoding to transfer large document over a
> WebService.  I did a little spike using the MTOM sample from the SDK but I
> can't make it work with large payload. Contrary to my expectation it seems
> that data are not stream over multiple HTTP send and I always receive the
> following error:
>
>
>
> >
>
> > The maximum message size quota for incoming messages (65536) has been
> exceeded. To increase the quota, use the MaxReceivedMessageSize property
> on
> the appropriate binding element.
>
> >
>
>
>
> Anyone has experimented MTOM ?
>
>
>
> Thanks,
>
>
>
>
>
>
> ===================================
> This list is hosted by DevelopMentor(r)  http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
>

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to