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

Re: http_url_post Performance



Hello,

Sorry, but without understanding _WHY_ it's slow, I don't see how I can 
help you?


On 11/11/2010 7:49 AM, Natarajan Palani wrote:
>
>     Hi Scott,
>
>     I am using http_url_post API and getting the XML response back. Since
>     the response XML size may exceed Maximum allowed in RPGLE, I am
>     getting the XML response back through temporary IFS file.
>
>     Question:
>     I am experiencing a performance problem. It taking around 30 seconds
>     to get a response back for a request message size of 353 kilobytes. I
>     do not know if the performance issue is on the server side or is its
>     http_url_post API. Can you please let me know if I can do something
>     better to increase the performance.
>     Below is the code for your reference:
>                 //Create a Temporary IFS File to get the XML response from
>     SABRIX
>                 @IFSTempfile = http_tempfile() + '.xml';
>                 //Process to Convert the postdata/Inputdata to URL encoded
>     data.
>                 form = WEBFORM_open();
>                 WEBFORM_setPtr(form: 'instring': pWk_XML_Input :
>                                p_Offset );
>                 WEBFORM_postData(form: postData: postDataSize );
>                 // Post data and get document
>                 rc = http_url_post(%trim(@ServerName)
>                           : postData
>                           : postDataSize
>                           : @IFSTempfile
>                           : @HTTPPostTimeout
>                           : *OMIT
>                           : %trim(@URLEncodApp) );
>
>                 WEBFORM_close(form);
>                 if rc<>  1;
>                   unlink(@IFSTempfile);
>                   DS_HTTP_StatusData.HTTPErrDesc = 'HTTP Post Failed. ' +
>                                                     http_error();
>                   DS_HTTP_StatusData.ReturnCd    = HTTPPostFailed;
>                 Endif;
>     Thanks for all your help.
>     Raj
>
>
>
>
> -----------------------------------------------------------------------
> 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
-----------------------------------------------------------------------