Ben,
Web services are inherently defined by a multithreaded apartment model so I
don’t think you can write single threaded web service. But there are
alternatives:
1. You can invoke single threaded component in you web service using thread.
Note that you can not directly invoke single threaded component in web
service. If threading model of web service doesn’t match with COM component
then you will receive an error when you try to instantiate the object. The
solution is to call the COM object from a thread that has the same threading
model as the COM object itself. In the new threads that you create, you have
the option of controlling the threading model so you can match it to the COM
component.
2. If you need single threaded web service to avoid any collision at
database side then think about using modifying or creating new stored
procedure which will handle transactions properly.
3. Remoting
Regards,
Ajit
"ben" wrote:
I am needing a web service to be single threaded. Is this possible? Any
ideas would be helpful