Re: File Attachments Larger and 4MB
From: drkraus (drkraus_at_nospam.nospam)
Date: 12/02/04
- Next message: Drew Marsh: "Re: File Attachments Larger and 4MB"
- Previous message: Rob Thomson: "UserName token Access denied smart client"
- In reply to: Rory Plaire: "Re: File Attachments Larger and 4MB"
- Next in thread: drkraus: "Re: File Attachments Larger and 4MB"
- Reply: drkraus: "Re: File Attachments Larger and 4MB"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 2 Dec 2004 14:35:08 -0800
Excel is the client. An Excel add-in exposes access to our web service.
Thanks, we will take a look at your suggestion...
"Rory Plaire" wrote:
> "=?Utf-8?B?ZHJrcmF1cw==?=" <drkraus@nospam.nospam> wrote in
> news:3ADEA1AD-1412-4D78-B9B7-C1C2EC1E2DA7@microsoft.com:
>
> > Hi Rory,
> >
> > I am working with Drew. I have tried the httpruntime solution, but
> > this is not enough since putting it in the machine.config, or the
> > web.config of the service, only covers the web server side of things.
> > It appears that this value must also be set for the client. Our client
> > is an Excel add-in, and I have made it work by setting
> > maxRequestLength in a excel.exe.config file that I create, but this is
> > not an optimal solution. We are trying to figure out how to either
> > programmatically set the maxRequestLength value from the client side,
> > or find another way to configure the value which won't require us to
> > put an excel.exe.config file in the Office10 directory.
> >
> > thanks, Dave
> >
>
> Interesting... so excel is the server and you're exposing the WSE Soap
> Server through an Excel add-in... Is my understanding correct?
>
> You could try to set it through reflection. The class you're looking for
> is
> Microsoft.Web.Services2.Messaging.Configuration.MessagingConfiguration,
> which can be found as a static member of
> Microsoft.Web.Services2.Configuration.WebServicesConfiguration, and the
> property you need to set is the integer _maxRequestBytes. Notice that
> you'll need to specify _bytes_ here instead of kilobytes, like in the
> configuration file. I'm sure that this is quite a bit not supported, but
> it may work for you. Since everything is static on the class, you'll
> need to set this value before you call any WSE code.
>
> It's a good feature request: make the configuration programmatically
> accessible. If you can set it in the config file, you should be able to
> set it in code!
>
> -rory
>
>
- Next message: Drew Marsh: "Re: File Attachments Larger and 4MB"
- Previous message: Rob Thomson: "UserName token Access denied smart client"
- In reply to: Rory Plaire: "Re: File Attachments Larger and 4MB"
- Next in thread: drkraus: "Re: File Attachments Larger and 4MB"
- Reply: drkraus: "Re: File Attachments Larger and 4MB"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|