Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2817-BinPackingSpeedup/HeuristicLab.Clients.Access/3.3/ServiceClients/GenerateServiceClients.cmd @ 17198

Last change on this file since 17198 was 16140, checked in by abeham, 6 years ago

#2817: updated to trunk r15680

File size: 1.8 KB
RevLine 
[14726]1@ECHO OFF
[8042]2
[14726]3SET HOST=
4SET GENERATECONFIG=
[8042]5
[14726]6ECHO.
7ECHO *******************************************************************************************
[8042]8
[14726]9SET /P HOST=Which host should be used? [services.heuristiclab.com]:
10IF "%HOST%"=="" SET HOST=services.heuristiclab.com
[8042]11
[14726]12SET /P GENERATECONFIG=Would you like to generate the configuration file? [y]:
13IF "%GENERATECONFIG%"=="" SET GENERATECONFIG=y
14
15SET 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
24IF "%GENERATECONFIG%"=="y" (
25  SET ARGS=%ARGS% /config:..\app.config /mergeConfig
26) ELSE (
27  SET ARGS=%ARGS% /noConfig
28)
29
30ECHO.
31ECHO Generating AccessService client
32ECHO.
33
34SETLOCAL ENABLEDELAYEDEXPANSION
35svcutil.exe %ARGS%
36ENDLOCAL
37
38ECHO.
39ECHO ---------------------------------------------------------------------------------------
40ECHO !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!!
41ECHO.
[16140]42ECHO Following modifications have to be done manually:
[14726]43ECHO  * Remove method "protected void RaisePropertyChanged(string propertyName)" in generated AccessItem
[16140]44ECHO  * Change endpoint identity in app.config from "<certificate encodedValue="..." />" to "<dns value="host" />", e.g. "<dns value="services.heuristiclab.com" />"
[14726]45ECHO.
46ECHO !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!!
47ECHO ---------------------------------------------------------------------------------------
48ECHO.
49ECHO Generation of AccessService client finished.
50ECHO *******************************************************************************************
51ECHO.
52
53PAUSE
Note: See TracBrowser for help on using the repository browser.