News:

GinGly.com - Used by 85,000 Members - SMS Backed up 7,35,000 - Contacts Stored  28,850 !!

Main Menu

Service Definition Schema

Started by thiruvasagamani, Jan 20, 2009, 07:46 AM

Previous topic - Next topic

thiruvasagamani

Service Definition Schema


The service definition file defines the roles available to a service, specifies the service endpoints, and establishes configuration parameters for the service. Configuration parameter values are set in the service configuration file, as described by the Service Configuration File Schema.

The default extension for the service definition file is .csdef.
Sample Service Definition File

The following shows a sample service definition file for a service that includes a web role and a worker role:
Copy Code

<?xml version="1.0" encoding="utf-8"?>
<ServiceDefinition xmlns ="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" name="MyService">
  <WebRole name="MyWebRole">
    <LocalStorage name="WebRoleCache" sizeInMb="1"/>
    <ConfigurationSettings>
      <Setting name="ConfigSetting1"/>
      <Setting name="ConfigSetting2"/>
    </ConfigurationSettings>
    <InputEndpoints>
      <InputEndpoint name="HttpIn" port="80" protocol="http"/>
    </InputEndpoints>
  </WebRole>
  <WorkerRole name="WorkerRole" entrypoint=" MyService.EntryPoint.WorkerRole">
    <LocalStorage name="WorkerRoleCache" sizeInMb="1"/>
  </WorkerRole>
</ServiceDefinition>


Thiruvasakamani Karnan