Using CA Gen 8.6 Web Service Wizard on machine with Visual Studio 2017 or Visual Studio 2019 installed.
If select "Compile after generation?", the build fails
+++
--
-- Results of Building Java Wrapper for ws1
--
'nmake' is not recognized as an internal or external command,
operable program or batch file.
--
-- Building complete
+++
Release : 8.6
Component : CA Gen PLUGINS
The nature of the error indicates there is a problem with the Visual Studio configuration because it cannot find the Visual Studio nmake.exe executable.
The WSW build does not use BT tokens so it does not know which Visual Studio (VS) version is installed
The WSW template file "%Gen86%\PlugIns\Web Service Wizard\Templates\WebServicePluginTemplatejava.bat" is currently hardcoded to use VS 2015 (VS140) if it is installed i.e.
REM ## Set the Visual Studio environment variables
if EXIST "%VS140COMNTOOLS%vsvars32.bat" call "%VS140COMNTOOLS%vsvars32.bat"
The following CA Gen PTFs provide VS 2017 & 2019 support respectively:
Gen 8.6 Complete PTF WKS86200/SO09618 includes VS 2017 support and installs new file "C:\Program Files (x86)\CA\Gen86\Gen\toolset.bat.vs2017"
Toolset PTF TSN86209/SS13873 provides VS 2019 support and installs new file "C:\Program Files (x86)\CA\Gen86\Gen\toolset.bat.vs2019"
Therefore to enable the WSW to find the nmake.exe for the installed VS version i.e. 2017 or 2019:
1. Stop any running Toolset instances.
2. Install the required PTF level (above) for VS version installed.
3. Rename "C:\Program Files (x86)\CA\Gen86\Gen\toolset.bat" to "C:\Program Files (x86)\CA\Gen86\Gen\toolset.bat.vs2015"
4. EITHER, for VS 2017:
Copy "C:\Program Files (x86)\CA\Gen86\Gen\toolset.bat.vs2017" to "C:\Program Files (x86)\CA\Gen86\Gen\toolset.bat"
OR, for VS 2019:
Copy "C:\Program Files (x86)\CA\Gen86\Gen\toolset.bat.vs2019" to "C:\Program Files (x86)\CA\Gen86\Gen\toolset.bat"
5. Start the Toolset
6. Then generate/compile the Web Service again.
The nmake command will then be successful.
The typical output shown below was with JAVA_HOME=C:\Program Files\Java\jdk1.8.0_211\ set in SYSTEM Environment variables (the WSW uses JAVA_HOME):
+++
--
-- Results of Building Java Wrapper for ws1
--
Microsoft (R) Program Maintenance Utility Version 14.29.30038.1
Copyright (C) Microsoft Corporation. All rights reserved.
"C:\Program Files\Java\jdk1.8.0_211\\bin\javac" -encoding ISO-8859-15 -classpath "C:\Users\Administrator\Documents\CA\Gen 8.6\Models\sample.ief\\proxy\java\deploy\P900\P900.jar";;"C:\Program Files (x86)\CA\Gen86\Gen\classes\jprt86.xml.jar";"C:\Program Files (x86)\CA\Gen86\Gen\classes\csu86.jar";"C:\Program Files (x86)\CA\Gen86\Gen\classes\jprt.xml.jar";"C:\Program Files (x86)\CA\Gen86\Gen\classes\csu.jar" -d . ws1.java
--
-- Building complete
+++
Gen Engineering has updated the TSN86209/SS13873 SPECIAL INSTRUCTIONS to include Web Service Wizard as well as Rapid Test.
Java 11 support with the CA Gen 8.6 Web Service Wizard