Provisioning Service Applications

Applies to: SharePoint Foundation 2010

You can provision a Service Application Framework service application in the following ways:

  • Using Evaluation Mode for installations

  • Using the Farm Configuration Wizard

  • Using the Manage Service Applications user interface (UI)

  • Using Windows PowerShell

Provisioning During Evaluation Mode Installations

In an Evaluation Mode installation, a service can create a default service application. This service application is created and provisioned automatically during the installation process (during the post-setup configuration process), and must not require user input.

Note

If you are deriving a class from SPIisWebServiceApplication, pass the SPServiceProvisioningContext::IisWebServiceApplicationPool property to your SPIisWebServiceApplication constructor. This places your Web service into a shared Internet Information Services (IIS) application pool, which eliminates the overhead of a separate process on the computer.

Provisioning Using the Farm Configuration Wizard

In a farm (non-Evaluation Mode) installation, the farm administrator can create and provision a default service application by using the SharePoint 2010 Farm Configuration wizard.

Provisioning Using the Manage Service Applications UI

You can create individual service applications by clicking the New button on the ribbon of the Manage Service Applications page in the Central Administration site.

Note

Service applications are provisioned from the UI code by calling the BeginProvision method, instead of the Provision method. As a result, the provisioning code runs in an asynchronous timer job. Provisioning follows the Microsoft .NET Framework 1.0 asynchronous design pattern. As such, you have to call both BeginProvision and EndProvision.

Provisioning Using a Windows PowerShell cmdlet

You can create a service application by using a Windows PowerShell cmdlet.

Note

Service applications created from Windows PowerShell cmdlets should be provisioned via a call to the Provision method, instead of to the BeginProvision method, so that the provisioning code will run synchronously in the Windows PowerShell process.

See Also

Reference

SPObjectStatus

Concepts

Associating Web Services with Application Pools