Changes between Version 6 and Version 7 of Documentation/DevelopmentCenter/Develop Services
- Timestamp:
- 08/20/10 05:10:31 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Documentation/DevelopmentCenter/Develop Services
v6 v7 48 48 49 49 == Development == 50 After you have successfully completed all the steps described above, you are ready to start developing your own services and client applications. [attachment:"HeuristicLab Services Demo.zip" Attached to this page], you can find a Visual Studio 2010 solution file which contains two sample projects, one for a service and one for a client. These projects are a good starting point for developing custom HeuristicLab services. But before you are able to execute these two sample projects, some additional steps are necessary:50 After you have successfully completed all the steps described above, you are ready to start developing your own services and client applications. [attachment:"HeuristicLabServicesDemo.zip" Attached to this page], you can find a Visual Studio 2010 solution file which contains two sample projects, one for a service (`HeuristicLab.Services.DemoService`) and one for a client (`HeuristicLab.DemoClient`). These projects are a good starting point for developing custom HeuristicLab services. But before you are able to execute these two sample projects, some additional steps are necessary: 51 51 52 52 === 1. Update Client Service Reference === 53 53 As we have created a new server certificate, we have to update the service reference in the client project: 54 1. Open the `HeuristicLab ServicesDemo.sln` solution file.54 1. Open the `HeuristicLabServicesDemo.sln` solution file. 55 55 2. Update the service reference of the project `HeuristicLab.DemoClient`. 56 3. Add the attribute `behaviorConfiguration="DefaultEndpointBehavior"` to the `endpoint` specification of the `client` section in the `app.config` file of the client project (please note that updating the service reference of the client overwrites the whole `client` section each time; therefore adding the behavior configuration has to be done everytime after updating the service reference). The `client` section should look like: 57 {{{#!xml 58 <client> 59 <endpoint address="http://localhost:34825/Service.svc" binding="wsHttpBinding" behaviorConfiguration="DefaultEndpointBehavior" 60 bindingConfiguration="WSHttpBinding_IService" contract="Services.DemoService.IService" 61 name="WSHttpBinding_IService"> 62 <identity> 63 <certificate encodedValue="AwAAAAEAAAAUAAAA ... B+3eQE6Y8inFygk=" /> 64 </identity> 65 </endpoint> 66 </client> 67 }}} 56 68 57 69 === 2. Create Users and Roles === 58 You also have to add some users and roles for testing purposes. Users and roles can be administered using the `ASP.NET Web Site Administration Tool` which can be started in the solution explorer after clicking on the serv er project (have a close look at the tool bar of the solution explorer). Both sample projects require that there is a user called `Alice` who is member of the role `Everyone` and whose password is `YouWillNeverNow`.70 You also have to add some users and roles for testing purposes. Users and roles can be administered using the `ASP.NET Web Site Administration Tool` which can be started in the solution explorer after clicking on the service project (have a close look at the tool bar of the solution explorer). Please note that the administration tool will not work, if the path of the service project contains any spaces or special characters. Both sample projects require that there is a user called `Alice` who is member of the role `Everyone` and whose password is `YouWillNeverKnow`. 59 71 60 72 === 3. Run the Services Demo ===