Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.PluginInfrastructure/3.3/Advanced/DeploymentService/GenerateServiceClients.cmd @ 15361

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

#2835:

  • switched to DNS identities
  • updated service client generation cmds
File size: 1.7 KB
RevLine 
[14726]1@ECHO OFF
[4495]2
[14726]3SET HOST=
4SET GENERATECONFIG=
[4495]5
[14726]6ECHO.
7ECHO *******************************************************************************************
[4495]8
[14726]9SET /P HOST=Which host should be used? [services.heuristiclab.com]:
10IF "%HOST%"=="" SET HOST=services.heuristiclab.com
[4495]11
[14726]12SET /P GENERATECONFIG=Would you like to generate the configuration file? [y]:
13IF "%GENERATECONFIG%"=="" SET GENERATECONFIG=y
14
15SET ARGS=http://%HOST%/Deployment-3.3/UpdateService.svc?wsdl http://%HOST%/Deployment-3.3/AdminService.svc?wsdl ^
16/out:ServiceClients ^
17/namespace:*,HeuristicLab.PluginInfrastructure.Advanced.DeploymentService ^
18/targetClientVersion:Version35 ^
19/syncOnly
20
21IF "%GENERATECONFIG%"=="y" (
22  SET ARGS=%ARGS% /config:..\..\app.config /mergeConfig
23) ELSE (
24  SET ARGS=%ARGS% /noConfig
25)
26
27ECHO.
28ECHO Generating UpdateService and AdminService clients
29ECHO.
30
31SETLOCAL ENABLEDELAYEDEXPANSION
32svcutil.exe %ARGS%
33ENDLOCAL
34
35ECHO.
[15361]36ECHO ---------------------------------------------------------------------------------------
37ECHO !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!!
38ECHO.
39ECHO Following modifications have to be done manually:
40ECHO  * Change endpoint identity in app.config from "<certificate encodedValue="..." />" to "<dns value="host" />", e.g. "<dns value="services.heuristiclab.com" />"
41ECHO.
42ECHO !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!!
43ECHO ---------------------------------------------------------------------------------------
44ECHO.
[14726]45ECHO Generation of UpdateService and AdminService clients finished.
46ECHO *******************************************************************************************
47ECHO.
48
49PAUSE
Note: See TracBrowser for help on using the repository browser.