The mechanism used to configure COM+ interfaces to be exposed as Web services is the COM+ Service Model Configuration command-line tool (ComSvcConfig.exe). This tool will be used in this exercise to expose a COM+ business object.
The calling convention and command-line switches for ComSvcConfig are as shown here:
Table 6.2. Flags That Can Be Used with ComSvcConfig.exe
Option | Description |
---|
/application:< ApplicationID | | Specifies the COM+ application to configure. |
ApplicationName > | Short form /a. |
| Specifies the COM+ component and interface to configure as a service contract. |
/contract:< ClassID | ProgID | *, | Short form /c. |
InterfaceID | InterfaceName | * > | Although the wildcard character (*) can be used when you specify the component and interface names, we recommend that you do not use it, because you may expose interfaces you did not intend to. |
| Specifies whether to use the COM+ hosting mode or the Short form /h. |
/hosting:< complus | was > web hosting mode. | Using the COM+ hosting mode requires explicit activation of the COM+ application. Using the web hosting mode allows the COM+ application to be automatically activated as required. If the COM+ application is a library application, it runs in the Internet Information Services (IIS) process. If the COM+ application is a server application, it runs in the Dllhost.exe process. |
/webSite:< WebsiteName > | Specifies the website for hosting when web hosting mode is used (see the /hosting flag). |
| Short form /w. |
| If no website is specified, the default website is used. |
/webDirectory:< WebDirectoryName > | Specifies the virtual directory for hosting when web hosting is used (see the /hosting flag). |
| Short form /d. |
/mex | Adds a Metadata Exchange (MEX) service endpoint to the default service configuration to support clients that want to retrieve a contract definition from the service. |
| Short form /x. |
/id | Displays the application, component, and interface information as IDs. |
| Short form /k. |
/nologo | Prevents ComSvcConfig.exe from displaying its logo. |
| Short form /n. |
/verbose | Output additional tool progress information. |
| Short form /v. |
/help | Displays the usage message. |
| Short form /?. |