DetailPage-MSS-KB

Microsoft small business knowledge base

Article ID: 303375 - Last Review: September 24, 2003 - Revision: 4.1

This article was previously published under Q303375

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.

APPLIES TO
  • Microsoft Web Services (included with the .NET Framework) 1.0
  • Microsoft Visual Studio .NET 2002 Professional Edition
Keywords: 
kbinfo KB303375
Share
Additional support options
Ask The Microsoft Small Business Support Community
Contact Microsoft Small Business Support
Find Microsoft Small Business Support Certified Partner
Find a Microsoft Store For In-Person Small Business Support