Give your Model access to any data you want to provide through a Web service. The data could be in an external data source that you want to hook up to the Content Manager Explorer GUI, or it could be in the Content Manager database.
Procedure
- Create a Web service in Visual Studio. This results in a .svc and a .svc.cs file being created.
- In the .svc.cs file, write the Web service code by specifying the service contract, operation contract, and so on.
- Open the configuration file of the Model (its own if it has one, or the Editor's configuration file).
- In the
cfg:groups section, add a new resource group that looks as follows:
<cfg:group name="MyCustomWebService">
<cfg:fileset />
<cfg:services>
<cfg:service type="wcf">services/MyCustomService.svc</cfg:service>
</cfg:services>
</cfg:group>
- Save and close your configuration file.