| View previous topic :: View next topic |
| Author |
Message |
Graham Harris Guest
|
Posted: Mon Apr 23, 2007 9:47 am Post subject: Sharing SOAP request objects accross threads |
|
|
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
|
Posted: Sat Apr 28, 2007 12:04 am Post subject: Re: Sharing SOAP request objects accross threads |
|
|
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
|
Posted: Mon Apr 30, 2007 7:37 am Post subject: Re: Sharing SOAP request objects accross threads |
|
|
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
|
Posted: Mon Apr 30, 2007 11:35 pm Post subject: Re: Sharing SOAP request objects accross threads |
|
|
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 |
|
 |
|