Changeset 15973 for branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.OKB/3.3/Query/ServiceClient/GenerateServiceClient.cmd
- Timestamp:
- 06/28/18 11:13:37 (6 years ago)
- Location:
- branches/2522_RefactorPluginInfrastructure
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2522_RefactorPluginInfrastructure
- Property svn:ignore
-
old new 24 24 protoc.exe 25 25 obj 26 .vs
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Clients.OKB/3.3/Query/ServiceClient/GenerateServiceClient.cmd
r8055 r15973 1 echo off 1 @ECHO OFF 2 2 3 echo. 4 echo ******************************************************************************************* 5 echo Generating OKB query service client 6 echo. 3 SET HOST= 4 SET GENERATECONFIG= 7 5 8 REM If app.config should be generated, use option "/config:..\..\app.config" and optionally "/mergeConfig" instead of "/noConfig". 6 ECHO. 7 ECHO ******************************************************************************************* 9 8 10 svcutil.exe ^ 11 http://localhost:8732/Design_Time_Addresses/OKB-3.3/QueryService/mex ^ 12 /out:QueryServiceClient ^ 13 /namespace:*,HeuristicLab.Clients.OKB.Query ^ 14 /collectionType:System.Collections.Generic.List`1 ^ 15 /targetClientVersion:Version35 ^ 16 /enableDataBinding ^ 17 /noConfig 9 SET /P HOST=Which host should be used? [services.heuristiclab.com]: 10 IF "%HOST%"=="" SET HOST=services.heuristiclab.com 18 11 19 echo. 20 echo Generation of OKB query service client finished. 21 echo ******************************************************************************************* 22 echo. 12 SET /P GENERATECONFIG=Would you like to generate the configuration file? [y]: 13 IF "%GENERATECONFIG%"=="" SET GENERATECONFIG=y 23 14 24 pause 15 SET ARGS=http://%HOST%/OKB-3.3/QueryService.svc ^ 16 /out:QueryServiceClient ^ 17 /namespace:*,HeuristicLab.Clients.OKB.Query ^ 18 /collectionType:System.Collections.Generic.List`1 ^ 19 /targetClientVersion:Version35 ^ 20 /enableDataBinding ^ 21 /syncOnly 22 23 IF "%GENERATECONFIG%"=="y" ( 24 SET ARGS=%ARGS% /config:..\..\app.config /mergeConfig 25 ) ELSE ( 26 SET ARGS=%ARGS% /noConfig 27 ) 28 29 ECHO. 30 ECHO Generating QueryService client 31 ECHO. 32 33 SETLOCAL ENABLEDELAYEDEXPANSION 34 svcutil.exe %ARGS% 35 ENDLOCAL 36 37 ECHO. 38 ECHO --------------------------------------------------------------------------------------- 39 ECHO !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! 40 ECHO. 41 ECHO Following modifications have to be done manually: 42 ECHO * Change endpoint identity in app.config from "<certificate encodedValue="..." />" to "<dns value="host" />", e.g. "<dns value="services.heuristiclab.com" />" 43 ECHO. 44 ECHO !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! 45 ECHO --------------------------------------------------------------------------------------- 46 ECHO. 47 ECHO Generation of QueryService client finished. 48 ECHO ******************************************************************************************* 49 ECHO. 50 51 PAUSE
Note: See TracChangeset
for help on using the changeset viewer.