Free cookie consent management tool by TermsFeed Policy Generator

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

#2743: updated service client generation cmds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.Hive/3.3/ServiceClients/GenerateServiceClients.cmd

    r6976 r14726  
    1 echo off
     1@ECHO OFF
    22
    3 echo.
    4 echo *******************************************************************************************
    5 echo Generating HiveService client
    6 echo.
     3SET HOST=
     4SET GENERATECONFIG=
    75
    8 svcutil.exe ^
    9   http://localhost/Hive-3.3/HiveService.svc?wsdl ^
    10   /out:HiveServiceClient ^
    11   /namespace:*,HeuristicLab.Clients.Hive ^
    12   /collectionType:System.Collections.Generic.List`1 ^
    13   /targetClientVersion:Version35 ^
    14   /serializable ^
    15   /enableDataBinding ^
    16   /config:..\app.config
     6ECHO.
     7ECHO *******************************************************************************************
    178
    18 echo.
    19 echo ---------------------------------------------------------------------------------------
    20 echo !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!!
    21 echo.
    22 echo Following modifications have to be done manually in generated data contracts:
    23 echo  * Remove method "protected void RaisePropertyChanged(string propertyName)" in HiveItem
    24 echo.
    25 echo !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!!
    26 echo ---------------------------------------------------------------------------------------
    27 echo.
    28 echo Generation of HiveService client finished.
    29 echo *******************************************************************************************
     9SET /P HOST=Which host should be used? [services.heuristiclab.com]:
     10IF "%HOST%"=="" SET HOST=services.heuristiclab.com
    3011
     12SET /P GENERATECONFIG=Would you like to generate the configuration file? [y]:
     13IF "%GENERATECONFIG%"=="" SET GENERATECONFIG=y
     14
     15SET ARGS=http://%HOST%/Hive-3.3/HiveService.svc?wsdl ^
     16/out:HiveServiceClient ^
     17/namespace:*,HeuristicLab.Clients.Hive ^
     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 HiveService client
     32ECHO.
     33
     34SETLOCAL ENABLEDELAYEDEXPANSION
     35svcutil.exe %ARGS%
     36ENDLOCAL
     37
     38ECHO.
     39ECHO ---------------------------------------------------------------------------------------
     40ECHO !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!!
     41ECHO.
     42ECHO Following modifications have to be done manually in generated data contracts:
     43ECHO  * Remove method "protected void RaisePropertyChanged(string propertyName)" in generated HiveItem
     44ECHO.
     45ECHO !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!!
     46ECHO ---------------------------------------------------------------------------------------
     47ECHO.
     48ECHO Generation of HiveService client finished.
     49ECHO *******************************************************************************************
     50ECHO.
     51
     52PAUSE
Note: See TracChangeset for help on using the changeset viewer.