[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: WSDL2RPG/HTTPAPI and passing more than 16mb data
Thomas,
Thank you very much.
Will do.
Sam
Sent from my iPhone
On Sep 9, 2013, at 2:33 PM, Thomas Raddatz <thomas.raddatz@xxxxxxxxxxx> wrote:
> Sam,
>
> I changed the memory manager of the next coming version of WSDL2RPG. The new parameter does not exist in the current version or in v15beta8.
>
> Because of module WSDL2R84 did not change since v1.14.1 you can replace your WSDL2R84 and PWSDL2R84 with the attached versions. Though you should make a copy before.
>
> You may also consider to change procedure "_initializeMemoryManager" of your WS_SRV source member to match the one attached. Do not completely replace your WS_SRV with the the new version, since it might not work with v1.15beta8. Only replace or update procedure "_initializeMemoryManager" if you want to use separate heaps for all new web service stubs.
>
> Thomas.
>
> Am 09.09.2013 17:20, schrieb Sam:
>> Thomas,
>> Thanks for all the help you give and to Scott too,
>> I have v1.15beta8, I didn't see the third parm to pass(use separate heaps) in the memory manager procedure, am I missing something.
>> I checked wsdl2r84 and pwsdl2r84.
>>
>> Sent from my iPhone
>>
>> On Sep 9, 2013, at 9:18 AM, thomas.raddatz@xxxxxx wrote:
>>
>>> This way I just sent a message of roughly 41mb to the server:
>>> User-Agent: http-api/1.24
>>> Content-Length: 43116439
>>> Content-Type: text/xml
>>> SOAPAction:
>>> sendraw(): entered
>>> <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope ...
>>> Thomas.
>>> ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx schrieb am 09.09.2013 15:47:27:
>>>> Von: thomas.raddatz@xxxxxx
>>>> An: ftpapi@xxxxxxxxxxxxxxxxxxxxxx,
>>>> Datum: 09.09.2013 15:56
>>>> Betreff: Re: WSDL2RPG/HTTPAPI and passing more than 16mb data
>>>> Gesendet von: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
>>>>
>>>>
>>>> Sam,
>>>>
>>>> Today dynamic arrays do not (really) help to get beyond 16mb because
>>> all
>>>> dynamic arrays share the same memory heap. The advantage of dynamic
>>> arrays
>>>> is that the 16mb are used more efficiently and that that the total
>>> message
>>>> size can grow up to 32mb. 16mb of static storage of the
>>> request/response
>>>> data structure plus 16mb additional heap storage.
>>>>
>>>> For the next release I changed the WSDL2RPG memory manager to
>>> optionally
>>>> create one heap per array. This way each array can grow up to 16mb.
>>> If you
>>>> are on WSDL2RPG v1.14.1 or higher, you may consider to replace
>>> WSDL2R84
>>>> (and PWSDL2R84) to use the new manager. After having generated the
>>> stub
>>>> you need to change module WS_SRV like this:
>>>>
>>>> // Start memory manager, do not use symbolic names
>>>> // Note 1: It is strongly recommended not to use symbolic names
>>>> // due to high performance degradation.
>>>> // Note 2: Set "use separate heaps" to cTRUE, if your
>>>> // request/response messages uses dynamic arrays
>>>> // and exceeds 16MB.
>>>> MemoryManager_attachService(uuid // web service uuid
>>>> : cFalse // do not use symbolic names
>>> for
>>>> arrays
>>>> : cTrue); // use separate heaps for
>>> arrays
>>>> !!!
>>>>
>>>> Thomas.
>>>>
>>>>
>>>>
>>>> ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx schrieb am 08.09.2013 16:45:26:
>>>>
>>>>> Von: Cdssi@xxxxxxx
>>>>> An: ftpapi@xxxxxxxxxxxxxxxxxxxxxx,
>>>>> Datum: 08.09.2013 19:47
>>>>> Betreff: WSDL2RPG/HTTPAPI and passing more than 16mb data
>>>>> Gesendet von: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
>>>>>
>>>>>
>>>>> Hello,
>>>>> We are on iSeries V7.1 and use wsdl2rpg, there is a need to pass
>>> more
>>>> than
>>>>> 16mb of data to consume web services,
>>>>> Please suggest alternatives or If we are doing something
>>> incorrectly.
>>>>> Will using Dynamic arrays help?, I think there is an example in
>>> wsdl2rpg
>>>>
>>>>> library,
>>>>> Thanks in advance.
>>> Sam.-------------------------------------------------------------------
>>> ----
>>>>> This is the FTPAPI mailing list. To unsubscribe, please go to:
>>>>> [1]http://www.scottklement.com/mailman/listinfo/ftpapi
>>> -----------------------------------------------------------------------
>>>>
>>>>
>>>> --
>>>> IMPORTANT NOTICE:
>>>> This email is confidential, may be legally privileged, and is for the
>>>> intended recipient only. Access, disclosure, copying, distribution,
>>> or
>>>> reliance on any of it by anyone else is prohibited and may be a
>>> criminal
>>>> offence. Please delete if obtained in error and email confirmation
>>>> to the
>>> sender.----------------------------------------------------------------
>>> -------
>>>> This is the FTPAPI mailing list. To unsubscribe, please go to:
>>>> [2]http://www.scottklement.com/mailman/listinfo/ftpapi
>>> -----------------------------------------------------------------------
>>>
>>> --
>>> IMPORTANT NOTICE:
>>> This email is confidential, may be legally privileged, and is for the
>>> intended recipient only. Access, disclosure, copying, distribution, or
>>> reliance on any of it by anyone else is prohibited and may be a
>>> criminal
>>> offence. Please delete if obtained in error and email confirmation to
>>> the sender.
>>>
>>> References
>>>
>>> 1. http://www.scottklement.com/mailman/listinfo/ftpapi
>>> 2. http://www.scottklement.com/mailman/listinfo/ftpapi
>>> -----------------------------------------------------------------------
>>> This is the FTPAPI mailing list. To unsubscribe, please go to:
>>> http://www.scottklement.com/mailman/listinfo/ftpapi
>>> -----------------------------------------------------------------------
>> -----------------------------------------------------------------------
>> This is the FTPAPI mailing list. To unsubscribe, please go to:
>> http://www.scottklement.com/mailman/listinfo/ftpapi
>> -----------------------------------------------------------------------
> <PWSDL2R84_v1.16.rpgle>
> <WSDL2R84_v1.16.rpgle>
> <WS_SRV_v1.16.rpgle>
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list. To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------