In the previous post, I used SoapUI to exercise the web service API in SAP Information Steward. We logged into the BusinessObjects environment and used the session token to get details of a Metapedia Term. Ultimately we want to do the same thing from a web application instead of a query tool, so our first goal is to establish a development environment. These are the components we will be installing:
The instructions reference specific versions but others may work - see the disclaimer in the first post in this series: Creating a Custom Interface to SAP Information Steward’s Metapedia using Web Services.
Install the JDK
Download the Java SE Development Kit 6u32 for Windows x64 from Oracle at:
Run the file (jdk-6u32-windows-x64.exe) as Administrator to begin the installation. Accept the default selections. It will install the JDK and JRE in C:\Program Files\Java. Create an environment variable named JAVA_HOME and assign it the value C:\Program Files\Java\jdk1.6.0_32 (the path to the root folder where Java is installed). Note: Windows environment variables are set in the System widget of the Control Panel. Consult the internet if you’re unfamiliar with setting Environment Variables. Log off and log back on to ensure that the environment variable “takes”. You can type the following in a Command Prompt to be sure:
Download the Tomcat 6.0.37 binary distribution for 64-bit Windows zip from the following location:
Extract the downloaded file (apache-tomcat-6.0.37-windows-x64.zip) into C:\Program Files. There is no setup routine – it just needs to be extracted. Tomcat does not use Windows’ environment variables, so we must tell it where to find the Java libraries. In Notepad, create a file with the following contents:
exit /b 0
Save the file. Name it setenv.bat, and save it in folder C:\Program Files\apache-tomcat-6.0.37\bin Note: the variable in this batch file should be consistent with the JAVA_HOME Windows environment variable you defined in the previous step. Create an environment variable named CATALINA_HOME and assign it the value C:\Program Files\apache-tomcat-6.0.37 Log off and log back on to ensure that the environment variable “takes”. Check that Tomcat 6 is working:
- Run the batch file startup.bat located in Tomcat’s bin folder
- Open a web browser and navigate to http://localhost:8080
- You should see default Apache Tomcat home page
Download the Axis2 1.6.2 binary distribution in zip format from:
Extract the downloaded file (axis2-1.6.2-bin.zip) into C:\Program Files. There is no setup routine – it just needs to be extracted. Axis2 is a Java library that facilitates web service architecture using SOAP. We will be using only one of its features; that which generates client Java code from a WSDL.
Download the Eclipse IDE for Java EE Developers for Windows 64-bitformat from:
Extract the downloaded file (eclipse-jee-helios-SR2-win32-x86_64.zip) into C:\Program Files, creating an eclipse folder. There is no setup routine – it just needs to be extracted. I found it best to run Eclipse as administrator:
- Create a Windows Shortcut to the Eclipse executable (eclipse.exe) on the desktop
- Right-click that shortcut
- Navigate to the Shortcut tab
- Click the Advanced button
- Check Run as administrator
- Click OK and OK
Tune in to the next post in the series:
Next time, we will kick the tires of our development environment by building and running a simple JSP web application.