[14726] | 1 | @ECHO OFF
|
---|
[8042] | 2 |
|
---|
[14726] | 3 | SET HOST=
|
---|
| 4 | SET GENERATECONFIG=
|
---|
[8042] | 5 |
|
---|
[14726] | 6 | ECHO.
|
---|
| 7 | ECHO *******************************************************************************************
|
---|
[8042] | 8 |
|
---|
[14726] | 9 | SET /P HOST=Which host should be used? [services.heuristiclab.com]:
|
---|
| 10 | IF "%HOST%"=="" SET HOST=services.heuristiclab.com
|
---|
[8042] | 11 |
|
---|
[14726] | 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%/AccessService-3.3/AccessService.svc?wsdl ^
|
---|
| 16 | /out:AccessServiceClient ^
|
---|
| 17 | /namespace:*,HeuristicLab.Clients.Access ^
|
---|
| 18 | /collectionType:System.Collections.Generic.List`1 ^
|
---|
| 19 | /targetClientVersion:Version35 ^
|
---|
| 20 | /serializable ^
|
---|
| 21 | /enableDataBinding ^
|
---|
| 22 | /syncOnly
|
---|
| 23 |
|
---|
| 24 | IF "%GENERATECONFIG%"=="y" (
|
---|
| 25 | SET ARGS=%ARGS% /config:..\app.config /mergeConfig
|
---|
| 26 | ) ELSE (
|
---|
| 27 | SET ARGS=%ARGS% /noConfig
|
---|
| 28 | )
|
---|
| 29 |
|
---|
| 30 | ECHO.
|
---|
| 31 | ECHO Generating AccessService client
|
---|
| 32 | ECHO.
|
---|
| 33 |
|
---|
| 34 | SETLOCAL ENABLEDELAYEDEXPANSION
|
---|
| 35 | svcutil.exe %ARGS%
|
---|
| 36 | ENDLOCAL
|
---|
| 37 |
|
---|
| 38 | ECHO.
|
---|
| 39 | ECHO ---------------------------------------------------------------------------------------
|
---|
| 40 | ECHO !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!!
|
---|
| 41 | ECHO.
|
---|
[15361] | 42 | ECHO Following modifications have to be done manually:
|
---|
[14726] | 43 | ECHO * Remove method "protected void RaisePropertyChanged(string propertyName)" in generated AccessItem
|
---|
[15361] | 44 | ECHO * Change endpoint identity in app.config from "<certificate encodedValue="..." />" to "<dns value="host" />", e.g. "<dns value="services.heuristiclab.com" />"
|
---|
[14726] | 45 | ECHO.
|
---|
| 46 | ECHO !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!!
|
---|
| 47 | ECHO ---------------------------------------------------------------------------------------
|
---|
| 48 | ECHO.
|
---|
| 49 | ECHO Generation of AccessService client finished.
|
---|
| 50 | ECHO *******************************************************************************************
|
---|
| 51 | ECHO.
|
---|
| 52 |
|
---|
| 53 | PAUSE
|
---|