Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2931_OR-Tools_LP_MIP/HeuristicLab.Clients.OKB/3.3/Administration/ServiceClient/GenerateServiceClient.cmd @ 16046

Last change on this file since 16046 was 15361, checked in by jkarder, 7 years ago

#2835:

  • switched to DNS identities
  • updated service client generation cmds
File size: 1.8 KB
Line 
1@ECHO OFF
2
3SET HOST=
4SET GENERATECONFIG=
5
6ECHO.
7ECHO *******************************************************************************************
8
9SET /P HOST=Which host should be used? [services.heuristiclab.com]:
10IF "%HOST%"=="" SET HOST=services.heuristiclab.com
11
12SET /P GENERATECONFIG=Would you like to generate the configuration file? [y]:
13IF "%GENERATECONFIG%"=="" SET GENERATECONFIG=y
14
15SET ARGS=http://%HOST%/OKB-3.3/AdministrationService.svc?wsdl ^
16/out:AdministrationServiceClient ^
17/namespace:*,HeuristicLab.Clients.OKB.Administration ^
18/collectionType:System.Collections.Generic.List`1 ^
19/targetClientVersion:Version35 ^
20/enableDataBinding ^
21/syncOnly
22
23IF "%GENERATECONFIG%"=="y" (
24  SET ARGS=%ARGS% /config:..\..\app.config /mergeConfig
25) ELSE (
26  SET ARGS=%ARGS% /noConfig
27)
28
29ECHO.
30ECHO Generating AdministrationService client
31ECHO.
32
33SETLOCAL ENABLEDELAYEDEXPANSION
34svcutil.exe %ARGS%
35ENDLOCAL
36
37ECHO.
38ECHO ---------------------------------------------------------------------------------------
39ECHO !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!!
40ECHO.
41ECHO Following modifications have to be done manually:
42ECHO  * Remove method "protected void RaisePropertyChanged(string propertyName)" in generated OKBItem
43ECHO  * Change endpoint identity in app.config from "<certificate encodedValue="..." />" to "<dns value="host" />", e.g. "<dns value="services.heuristiclab.com" />"
44ECHO.
45ECHO !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!!
46ECHO ---------------------------------------------------------------------------------------
47ECHO.
48ECHO Generation of AdministrationService client finished.
49ECHO *******************************************************************************************
50ECHO.
51
52PAUSE
Note: See TracBrowser for help on using the repository browser.