BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Sharing SOAP request objects accross threads

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi WebServices SOAP
View previous topic :: View next topic  
Author Message
Graham Harris
Guest





PostPosted: Mon Apr 23, 2007 9:47 am    Post subject: Sharing SOAP request objects accross threads Reply with quote



Hi

I have a SOAP consumer that is run in a multi threaded environment. The SOAP
Service requires the consumer to authenticate against the service. So I have
a class that manages a pool of SOAP consumers objects. Now my question is
how do I marshal the SOAP Consumer accross thread boundaries? I have a mechanism
to identifiy when a SOAP consumer from the pool is being used.

TIA

Graham Harris
Back to top
Jean-Marie Babet
Guest





PostPosted: Sat Apr 28, 2007 12:04 am    Post subject: Re: Sharing SOAP request objects accross threads Reply with quote



Hello Graham,


Quote:
Now my question is
how do I marshal the SOAP Consumer across thread boundaries?

From a Client point of view I can't think of any code in the runtime that
requires marshalling: each consumer is essentially the underlying THTTPRIO.
Are running into issues with the components used by the RIO (MSXML or
WinInet)?

Cheers,

Bruneau.
Back to top
Graham Harris
Guest





PostPosted: Mon Apr 30, 2007 7:37 am    Post subject: Re: Sharing SOAP request objects accross threads Reply with quote



Hello Bruneau,

The only reason I asked the question is that I have run into problems with
MapPoint.NET. I was getting a strange access violation. Though when I migrated
the code to Delphi 2007 I do not get the AV, though more testing will be
needed.

Graham Harris

Quote:
Hello Graham,

Now my question is
how do I marshal the SOAP Consumer across thread boundaries?
From a Client point of view I can't think of any code in the runtime
that requires marshalling: each consumer is essentially the underlying
THTTPRIO. Are running into issues with the components used by the RIO
(MSXML or WinInet)?

Cheers,

Bruneau.
Back to top
Jean-Marie Babet
Guest





PostPosted: Mon Apr 30, 2007 11:35 pm    Post subject: Re: Sharing SOAP request objects accross threads Reply with quote

Hello,

Quote:
The only reason I asked the question is that I have run into problems with
MapPoint.NET. I was getting a strange access violation. Though when I
migrated
the code to Delphi 2007 I do not get the AV, though more testing will be
needed.


Thanks for the info. Let me know if you find out more. The D2007 runtime
fixes some AVs that are not specific to multi-threaded env. but could
(maybe) show up more readily in that context. They were related to the way
we serialize dynamic arrays.

Cheers,

Bruneau.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi WebServices SOAP All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.