INFO: XML Web Services and Apartment Objects

Article translations Article translations
Article ID: 303375 - View products that this article applies to.
This article was previously published under Q303375
Expand all | Collapse all

On This Page

SUMMARY

This article describes how to call Apartment objects from XML Web services through the COM interoperability layer.

MORE INFORMATION

The following are supported methods for calling Apartment objects from XML Web services:
  • The Web service can call an Apartment object, such as Visual Basic 6.0, that is registered in a COM+ library application.

    Note the component must be marked as Synchronization="Required" (default) and must reside on a computer that is running Microsoft Windows 2000 Service Pack 2 or later.
  • The Web service can call an Apartment object that is registered in a COM+ server application that resides on a computer that is running Windows 2000 Service Pack 2 or later.

Notes

When you call Apartment objects from XML Web services, remember the following:
  • The ASPCOMPAT attribute is not supported. Because ASPCOMPAT is not supported, your Apartment object cannot require ASP intrinsics.
  • Although you can use other methods to call Apartment objects from XML Web services, and these methods may appear to function correctly, these methods are neither tested nor supported.
  • If you want to run your Web services in multi-threaded apartments (MTAs), calls to your Apartment object are made by a single-threaded apartment thread. COM+ creates the proxy and stub and also handles the marshalling from the MTA in which the Web service resides to the single-threaded apartment (STA) in which the Apartment object resides.

Properties

Article ID: 303375 - Last Review: September 24, 2003 - Revision: 4.1
APPLIES TO
  • Microsoft Web Services (included with the .NET Framework) 1.0
  • Microsoft Enterprise Services (included with the .NET Framework) 1.0
  • Microsoft Visual Studio .NET 2002 Professional Edition
Keywords: 
kbinfo KB303375

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com