Ignore:
Timestamp:
03/07/17 17:47:45 (4 years ago)
Author:
jkarder
Message:

#2743: updated service client generation cmds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.OKB/3.3/Administration/ServiceClient/GenerateServiceClient.cmd

    r8055 r14726  
    1 echo off
     1@ECHO OFF
    22
    3 echo.
    4 echo *******************************************************************************************
    5 echo Generating OKB administration service client
    6 echo.
     3SET HOST=
     4SET GENERATECONFIG=
    75
    8 REM If app.config should be generated, use option "/config:..\..\app.config" and optionally "/mergeConfig" instead of "/noConfig".
     6ECHO.
     7ECHO *******************************************************************************************
    98
    10 svcutil.exe ^
    11   http://localhost:8732/Design_Time_Addresses/OKB-3.3/AdministrationService/mex ^
    12   /out:AdministrationServiceClient ^
    13   /namespace:*,HeuristicLab.Clients.OKB.Administration ^
    14   /collectionType:System.Collections.Generic.List`1 ^
    15   /targetClientVersion:Version35 ^
    16   /enableDataBinding ^
    17   /noConfig
     9SET /P HOST=Which host should be used? [services.heuristiclab.com]:
     10IF "%HOST%"=="" SET HOST=services.heuristiclab.com
    1811
    19 echo.
    20 echo ---------------------------------------------------------------------------------------
    21 echo !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!!
    22 echo.
    23 echo Following modifications have to be done manually in generated data contracts:
    24 echo  * Remove method "protected void RaisePropertyChanged(string propertyName)" in OKBItem
    25 echo.
    26 echo !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!!
    27 echo ---------------------------------------------------------------------------------------
    28 echo.
    29 echo Generation of OKB administration service client finished.
    30 echo *******************************************************************************************
    31 echo.
     12SET /P GENERATECONFIG=Would you like to generate the configuration file? [y]:
     13IF "%GENERATECONFIG%"=="" SET GENERATECONFIG=y
    3214
    33 pause
     15SET ARGS=http://%HOST%/OKB-3.3/AdministrationService.svc?wsdl ^
     16/out:AdministrationServiceClient ^
     17/namespace:*,HeuristicLab.Clients.OKB.Administration ^
     18/collectionType:System.Collections.Generic.List`1 ^
     19/targetClientVersion:Version35 ^
     20/enableDataBinding ^
     21/syncOnly
     22
     23IF "%GENERATECONFIG%"=="y" (
     24  SET ARGS=%ARGS% /config:..\..\app.config /mergeConfig
     25) ELSE (
     26  SET ARGS=%ARGS% /noConfig
     27)
     28
     29ECHO.
     30ECHO Generating AdministrationService client
     31ECHO.
     32
     33SETLOCAL ENABLEDELAYEDEXPANSION
     34svcutil.exe %ARGS%
     35ENDLOCAL
     36
     37ECHO.
     38ECHO ---------------------------------------------------------------------------------------
     39ECHO !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!!
     40ECHO.
     41ECHO Following modifications have to be done manually in generated data contracts:
     42ECHO  * Remove method "protected void RaisePropertyChanged(string propertyName)" in generated OKBItem
     43ECHO.
     44ECHO !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!!
     45ECHO ---------------------------------------------------------------------------------------
     46ECHO.
     47ECHO Generation of AdministrationService client finished.
     48ECHO *******************************************************************************************
     49ECHO.
     50
     51PAUSE
Note: See TracChangeset for help on using the changeset viewer.