开发者

Configuration for downloading large DIME attachments via C# DLL from JasperServer web service

开发者 https://www.devze.com 2023-02-03 06:46 出处:网络
I\'m building a MVC2 .Net web app to download and view reports stored on Jasperserver.I\'ve built a web service client library to access the Jasperserver web service. Jasper works with DIME attachment

I'm building a MVC2 .Net web app to download and view reports stored on Jasperserver. I've built a web service client library to access the Jasperserver web service. Jasper works with DIME attachments so I'm using Microsoft.Web.Services2.

My MVC2 app works fine with smaller reports but when I try and pull down a 90 page re开发者_开发问答port in html (~9mb) I run into this error:

WSE352: The size of the record exceed its limit.

The post here shows the following for app.config settings of my client app:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <configSections>
        <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
           <section name="microsoft.web.services2" type="Microsoft.Web.Services2.Configuration.WebSer vicesConfiguration, Microsoft.Web.Services2, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
        </sectionGroup>
    </configSections>
    <applicationSettings>
        ...
    </applicationSettings>
  <microsoft.web.services2>
    <messaging>
      <maxRequestLength>-1</maxRequestLength>
    </messaging>
  </microsoft.web.services2>
</configuration>

After making these changes I'm still running into the same error "WSE352". My question is should the above app.config changes to my library be sufficient for my MVC app to download large reports? Or do I need to make changes to the web.config of my MVC app?

Any help would be greatly appreciated!


Yes, you do need to add configurations to the web.config of your MVC app!

After re-reading the linked post and doing some experiments my problems where mostly copy/paste related.

Here is the relevent parts of the app.config in my library:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <configSections>        
        <section name="microsoft.web.services2" type="Microsoft.Web.Services2.Configuration.WebServicesConfiguration, Microsoft.Web.Services2, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    </configSections>
  <microsoft.web.services2>
    <messaging>
      <maxRequestLength>-1</maxRequestLength>
    </messaging>
  </microsoft.web.services2>
</configuration>

And the relevant parts of web.config of the MVC app:

<?xml version="1.0"?>
<configuration>
      <configSections>
        <section name="microsoft.web.services2" type="Microsoft.Web.Services2.Configuration.WebServicesConfiguration, Microsoft.Web.Services2, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
      </configSections>

      <microsoft.web.services2>
        <messaging>
          <maxRequestLength>-1</maxRequestLength>
        </messaging>
      </microsoft.web.services2>
    </configuration>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号