Saturday, February 04, 2006

Soap Download Progress

I had written an article about how to provide feedback during a SOAP call using a progress bar in Delphi. That article seems to be offline, temporarily. You can now also access this article at:

http://blogs.teamb.com/deepakshenoy/articles/SoapDownloadProgress.aspx

4 Comments:

Blogger Steve Sidwell said...

Hi!
You seem to be the world expert on SOAP and Delphi!
I have a couple of questions:
1. How to do a progress message on the server end with SOAP - you've kindly shown how to do in on the client.
2. How can I run a SOAP client in my main thread and another SOAP client in another thread, both talking to the same server. I keep getting "Coinitialize has not been called".
I can only get my code to work if I use synchronize so the second threads call in made in the main thread, which defeats the purpose.
Many Thanks

Steve

5:56 PM  
Blogger Steve Sidwell said...

Hi!
You seem to be the world expert on SOAP and Delphi!
I have a couple of questions:
1. How to do a progress message on the server end with SOAP - you've kindly shown how to do in on the client.
2. How can I run a SOAP client in my main thread and another SOAP client in another thread, both talking to the same server. I keep getting "Coinitialize has not been called".
I can only get my code to work if I use synchronize so the second threads call in made in the main thread, which defeats the purpose.
Many Thanks

Steve

5:57 PM  
Blogger Deepak Shenoy said...

Steve,

Call CoInitialize(nil) as the first call in the Execute() method of the thread. And call CoUninitialize() as the last call, preferably in a try/finally block.

Like:
Procedure MyThread.Execute()
begin
CoInitialize(nil);
try
... your thread code to call soap server
finally
CoUninitialize();
end;
end;

You'll need to add ActiveX (or ComObj) to your uses clause.

10:01 PM  
Blogger dnote said...

The link does not work. I found this one:
http://blogs.teamb.com/deepakshenoy/2006/02/04/22983

Is this the article you were referring to?

4:29 AM  

Post a Comment

<< Home