Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

timeout when calling web service + track XML conversion

35 views
Skip to first unread message

Chopin

unread,
Mar 18, 2004, 12:51:25 AM3/18/04
to
I have a simple file upload web service and sometimes I pass large data like
10-15MB.

1) I get back "connection reset by peer", I assume this is some kind of
timeout, where can I make this longer?

2) I cann assign HTTPRIO to track the progress of the upload itself. However
in 10-15MB case even the conversion to XML takes a long time, where can I
track this?

Thanks

Chopin


Deepak Shenoy

unread,
Mar 18, 2004, 9:03:13 AM3/18/04
to
Chopin wrote:

> I have a simple file upload web service and sometimes I pass large
> data like 10-15MB.
>
> 1) I get back "connection reset by peer", I assume this is some kind
> of timeout, where can I make this longer?

You can call InternetSetOption with
INTERNET_OPTION_CONTROL_RECEIVE_TIMEOUT or INTERNET_OPTION_SEND_TIMEOUT
and change the time out values.

> 2) I cann assign HTTPRIO to track the progress of the upload itself.
> However in 10-15MB case even the conversion to XML takes a long time,
> where can I track this?

I haven't a clue at the moment but you may be able to debug into the
HttpRio code to get some ideas...


--
Deepak Shenoy (TeamB)
Agni Software
http://www.agnisoft.com

Chopin

unread,
Mar 21, 2004, 6:04:54 PM3/21/04
to
Thanks, I'll check it out.

As for progress maybe I will simply chunk the data I send to the webservice,
and I'll implement a new webservice that will reassemble the chunks on the
server.

Thanks,

Chopin


kalpana...@gmail.com

unread,
Aug 29, 2012, 4:52:13 AM8/29/12
to
Informatics Outsourcing is an Offshore Data Management service company. Data Management Service includes all types of Data Conversion, File Conversion, XML Conversion, HTML Conversion,SGML Conversion, Document Conversion,Data Entry, Data Extraction and Validation,OCR and ICR Services with affordable price. Our team to give the solution quickly and given requirements.

jerri...@gmail.com

unread,
May 13, 2020, 11:49:27 AM5/13/20
to
Se estiver usando TSOAPConnection, faça assim:

Crie uma procedure no seu DataModulo cliente, onde está o TSoapConnection, assim:

procedure TDtmGenerico.HTTPRIO1BeforeExecute(const MethodName: string;
SOAPRequest: TStream);
begin
SoapConnection1.RIO.HTTPWebNode.ConnectTimeout := 300000;
SoapConnection1.RIO.HTTPWebNode.ReceiveTimeout := 300000;
end;

No OnCreate do DataModulo cliente, set OnBeforeExecute do SoapConnection1.RIO.OnBeforeExecute apontando para HTTPRIO1BeforeExecute, assim:

procedure TDtmGenerico.DataModuleCreate(Sender: TObject);
begin
SoapConnection1.RIO.OnBeforeExecute := HTTPRIO1BeforeExecute;
end;
0 new messages