Curious HTTPRIO soap problem.
- From: Dodgy <Dodgy@xxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 22 Aug 2006 15:42:05 +0100
Hi Guys,
I'm connecting to a client's soap service, and everything has been
working fine, except the client's system is a bit wobbly.
Unfortunately this seems to be causing my process to hang for a very
long time (approx 30 mins) before it decides that the SOAP server is
not going to talk to it, and then it returns.
After a little bit of a google I found the
THHTPRIO.HTTPWebNode.ConnectTimeout
THHTPRIO.HTTPWebNode.SendTimeout
THHTPRIO.HTTPWebNode.ReceiveTimeout
properties, which look exactly like the kind of thing I need...
But it can't be that simple can it... Oh no....
If I set them to 8000ms, so 8 second time out, my soap call returns
instantly (less than a second) with the following exception
"The data area passed to a system call is too small."
I've tried removing the timeouts one at a time, and it appears that
the error occurs if I have any of them.
Remove them all, and great, it works (until the next time the client's
SOAP server has a wobble).
Oh, D7 arch standard Borland Soap components
HTTPRIO := THTTPRIO.Create(self);
try
with HTTPRIO do
begin
Name := 'HTTPRIO';
OnAfterExecute := HTTPRIO1AfterExecute;
WSDLLocation :='blah blah';
Service := 'CaseInfo';
Port := 'CaseInfoSoap';
// HTTPWebNode.ConnectTimeout:=8000;
// HTTPWebNode.SendTimeout:=8000;
// HTTPWebNode.ReceiveTimeout:=8000;
HTTPWebNode.Agent := 'Borland SOAP 1.1';
HTTPWebNode.UseUTF8InHeader := False;
HTTPWebNode.InvokeOptions := [soIgnoreInvalidCerts];
Converter.Options := [soSendMultiRefObj, soTryAllSchema,
soRootRefNodesToBody, soDocument];
Converter.Encoding := 'utf-8';
end;
except on E:Exception do
...... etc etc
Any ideas?
Cheers,
Dodgy.
--
MUSHROOMS ARE THE OPIATE OF THE MOOSES
.
- Prev by Date: Re: What does this do: TMyClass(AClass.member).Member?
- Next by Date: Filtering ADO from other form. Please help!!!
- Previous by thread: What does this do: TMyClass(AClass.member).Member?
- Next by thread: Filtering ADO from other form. Please help!!!
- Index(es):
Relevant Pages
|