[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with WSDL2RPG



Timo,

I have no idea why 16776704 does not work for you. We are on V6R1. If you 
want to debug that problem I suggest to add a breakpoint to the following 
statement of procedure ManagedMemoryDataSource_OutputStream_write() in 
module WSDL2R87 of service program WSDL2RPGRT:

    dataSource.pBuffer = %alloc(dataSource.maxCacheSize);

I wonder why 16776704 should not be a positive number. Maybe that your RPG 
compiler or execution environment is drunken. ;-)

Or maybe that your iSeries does not know the RPG manual, which clearly 
states that 16776704 is a legal value:

 From %alloc():

"The parameter must be a non-float numeric value with zero decimal places. 
The length specified must be between 1 and 16776704."

Thomas.


Am 28.04.2012 00:12, schrieb Casaluci, Timo:
>     Hello Thomas,
>
>
>     I've to reduce the max. memory size to something which is smaller than
>     16776704, with that value I got the error:
>
>
>                              Additional Message
>     Information
>
>
>
>      Message ID . . . . . . :   CEE0808       Severity . . . . . . . :
>     30
>
>      Message type . . . . . :   Escape
>
>      Date sent  . . . . . . :   27.04.12      Time sent  . . . . . . :
>     23:17:07
>
>
>
>      Message . . . . :   Requested storage size is not
>     valid.
>
>      Cause . . . . . :   Requested storage size is not a positive number.
>     The
>
>        exception occurred in procedure
>     CEEGTST.
>
>      Recovery  . . . :   Use a valid argument and try the operation
>     again.
>
>
>
>
>
>                                 Display Message
>     Details
>
>
>
>      Message ID . . . . . . :   CEE0808       Severity . . . . . . . :
>     30
>
>      Date sent  . . . . . . :   27.04.12      Time sent  . . . . . . :
>     23:17:07
>
>      Message type . . . . . :
>     Escape
>
>
>
>
>      From program . . . . . . . . . :
>     QLEAWI
>
>        From library . . . . . . . . :     QSYS
>
>        From module  . . . . . . . . :
>     QLETOOL
>
>        From procedure . . . . . . . :     Q LE
>     AWIRaise
>
>        From statement . . . . . . . :
>     178
>
>
>
>      To program . . . . . . . . . . :
>     WSDL2RPGRT
>
>        To library . . . . . . . . . :
>     WSDL2RPG
>
>        To module  . . . . . . . . . :
>     WSDL2R87
>
>        To procedure . . . . . . . . :
>     WSDL2R87_ManagedMemoryDataSource_OutputSt
>
>            ream_write
>
>        To statement . . . . . . . . :
>     62100
>
>
>      More...
>
>
>
>     After changing it to e.g. 16000000 byte that error doesn't occur again.
>     I doubled checked this.
>
>     It also appears that the WS need some more time for the processing, but
>     after changing the http timeout to 180 I got a response.
>
>
>     Thanks,
>
>
>     Timo
>
>
>     -----Urspr�ngliche Nachricht-----
>     Von: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
>     [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] Im Auftrag von
>     thomas.raddatz@xxxxxxxxxxx
>     Gesendet: Freitag, 27. April 2012 16:57
>     An: HTTPAPI and FTPAPI Projects
>     Betreff: Re: AW: Help with WSDL2RPG
>
>
>     Timo,
>
>
>     The FAQ is not clear enough regarding to the maximum memory size:
>
>
>        // Setting the cache size to 16MB
>
>        // (restricted to 16776704 bytes for V5R4 and lower)
>
>        hDataSource = ManagedMemoryDataSource_new(1024*1024*16);
>
>     The maximum memory size is 16776704 which is almost 1024*1024*16 but
>     not
>
>     equal to it. Please reduce the specified memory size to 16776704 and
>     try
>
>     your request again. On our box it takes 30 seconds with a 4MB data
>     source
>
>     and it takes 5 seconds with a 16MB data source to produce the request
>
>     message. The final size of the request message that was sent over the
>     wire
>
>     was about 18MB (log file size).
>
>
>     The number of elements were:
>
>
>        MaterialLot         = 1600
>
>        MaterialLotProperty = 10
>
>        Value               = 10
>
>        Quantity            = 2
>
>
>     List of changes:
>
>
>     VSEFACS:    MemoryMamanager_attachService(uuid: cFalse)
>
>     VSEFACS01:  ManagedMemoryDataSource_new(16776704)
>
>     VSEFACS20C: Number of array items
>
>                 Changed MemoryManager_createArray() to take 3 parameters
>     (all
>
>     places)
>
>
>     You may also drop the array name from the parameters list of
>
>     MemoryManager_createArray().
>
>
>     Regards,
>
>
>     Thomas.
>
>
>
>
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------