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

RE: http_url_post Performance



I sometimes perform a check for the service using bit a of VBScript independent of i5.

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Natarajan Palani
Sent: Friday, 12 November 2010 7:22 a.m.
To: scott klement
Subject: RE: http_url_post Performance


Hi Scott,
Thanks for you response,
I do not know why it is slow. I thought you could shed some light on why it could be.. I am doing something wrong or is it that the target server (Sabrix) response is taking that long.Is it because the request message size of 353 kilobytes.
Thanks Raj

From: natarajanpalani@xxxxxxx
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: http_url_post Performance
Date: Thu, 11 Nov 2010 08:49:58 -0500












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 		 	   		  
Visit our website www.vedaadvantage.com. It has a new design with improved navigation and search capabilities; and customer friendly interface with more relevant insights and solutions to help you make informed decisions.

#####################################################################################

This correspondence is for the named person's use only. It may contain confidential 
or legally privileged information, or both. No confidentiality or privilege is waived
or lost by any mistransmission. If you receive this correspondence in error, please
immediately delete it from your system and notify the sender. You must not disclose, 
copy or rely on any part of this correspondence if you are not the intended recipient. 
Any views expressed in this message are those of the individual sender, except where
the sender expressly, and with authority, states them to be the views of Veda Advantage.
If you need assistance, please contact Veda Advantage on either :-
Australia 1300-921-621 or New Zealand +64 9 367 6200
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------