Thanks for the info. The problem is that I am not designing the web service, the design is already set in stone by another group and I've got to live with it.

I haven't been able to dedicate the time to this problem the last few days but I've done some research and while I haven't found a solution I have a few things to try regarding the initial Websphere 6.0 JVM startup parameters. I'm not confident that any of them will work but I've got some time to try them out.

I don't understand why this is a problem, I am attempting to "allocate" a 26M byte array which is only used to hold the response file from the RPG IV service program and passed to a base64 encoder rather quickly. It works beautifully for files of 12M or less (I don't have any test files between 12M and 26M). The minimum heap size for the JVM is 128M (Max is 512M) which should be more than enough, I would think.

Sorry for the rambling, I just can't seem to come up with the underlying cause and am taking stabs in the dark.

Duane Christen


Duane Christen
Senior Software Engineer
(319) 790-7162


-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of John Holmer
Sent: Tuesday, May 18, 2010 10:03 PM
To: 'Web Enabling the AS400 / iSeries'
Subject: Re: [WEB400] SOAP Webservice returning PDF document

I think one of the more common ways to send a file like that is as an attachment. Microsoft supported that as part of their Web Service Enhancements 3.0 as DIME, but there were also competing technologies.

Depending on your service consumer, you may be able to code the attachment routine to the standard SOAP call and be able to make it work.

You could also check out the MS solution (DIME) here: and reverse engineer it for java.

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Richard Schoen
Sent: Tuesday, May 18, 2010 3:07 PM
To: web400@xxxxxxxxxxxx
Subject: Re: [WEB400] SOAP Webservice returning PDF document

I suppose you could also use a straight HTTP download to download the file as well.

Not knowing what you client app is, this should be pretty straightforward.

Have the web service create a file into a temporary folder and expose that folder for downloads.

The web service could return the URL for the download.

This is the Web Enabling the AS400 / iSeries (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.