Rev | Line | |
---|
[15261] | 1 | @ECHO OFF
|
---|
[4495] | 2 |
|
---|
[15261] | 3 | SET HOST=
|
---|
| 4 | SET GENERATECONFIG=
|
---|
[4495] | 5 |
|
---|
[15261] | 6 | ECHO.
|
---|
| 7 | ECHO *******************************************************************************************
|
---|
[4495] | 8 |
|
---|
[15261] | 9 | SET /P HOST=Which host should be used? [services.heuristiclab.com]:
|
---|
| 10 | IF "%HOST%"=="" SET HOST=services.heuristiclab.com
|
---|
[4495] | 11 |
|
---|
[15261] | 12 | SET /P GENERATECONFIG=Would you like to generate the configuration file? [y]:
|
---|
| 13 | IF "%GENERATECONFIG%"=="" SET GENERATECONFIG=y
|
---|
| 14 |
|
---|
| 15 | SET 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 |
|
---|
| 21 | IF "%GENERATECONFIG%"=="y" (
|
---|
| 22 | SET ARGS=%ARGS% /config:..\..\app.config /mergeConfig
|
---|
| 23 | ) ELSE (
|
---|
| 24 | SET ARGS=%ARGS% /noConfig
|
---|
| 25 | )
|
---|
| 26 |
|
---|
| 27 | ECHO.
|
---|
| 28 | ECHO Generating UpdateService and AdminService clients
|
---|
| 29 | ECHO.
|
---|
| 30 |
|
---|
| 31 | SETLOCAL ENABLEDELAYEDEXPANSION
|
---|
| 32 | svcutil.exe %ARGS%
|
---|
| 33 | ENDLOCAL
|
---|
| 34 |
|
---|
| 35 | ECHO.
|
---|
[15386] | 36 | ECHO ---------------------------------------------------------------------------------------
|
---|
| 37 | ECHO !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!!
|
---|
| 38 | ECHO.
|
---|
| 39 | ECHO Following modifications have to be done manually:
|
---|
| 40 | ECHO * Change endpoint identity in app.config from "<certificate encodedValue="..." />" to "<dns value="host" />", e.g. "<dns value="services.heuristiclab.com" />"
|
---|
| 41 | ECHO.
|
---|
| 42 | ECHO !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!!
|
---|
| 43 | ECHO ---------------------------------------------------------------------------------------
|
---|
| 44 | ECHO.
|
---|
[15261] | 45 | ECHO Generation of UpdateService and AdminService clients finished.
|
---|
| 46 | ECHO *******************************************************************************************
|
---|
| 47 | ECHO.
|
---|
| 48 |
|
---|
| 49 | PAUSE
|
---|
Note: See
TracBrowser
for help on using the repository browser.