Set up a development environment for Web services
The appserver provides command-line tools to develop Web services clients and implementations that are based on the Web Services for Java EE specification. Set up your development environment before you start developing Web services.
Before we can set up a Web services development environment within WAS, install WAS. For detailed information on installing the appserver, read about installing the application server environment.
Set up a Web services development environment by completing the following actions.
- Set up the environment.
(Windows) Run the setupCmdLine.bat command from the /$WP_PROFILE/<application_server>/bin directory.
[Linux] [AIX] [HP-UX] [Solaris]Operating systems such as AIX or Linux source the script to the parent shell to inherit the exported variables by running this command:
. ./setupCmdLine.sh (Notice the space between the periods.)from the . /$WP_PROFILE/<application_server>/bin directory.We can set WAS_USER_SCRIPT to $WP_PROFILE\<application_server>\bin\setupCmdLine.bat, which has the same effect as running the setupCmdLine command.
- Set the path. We can add the WebSphere and Java bin directories to the path by typing:
(Windows)
set PATH=%WAS_PATH%;%PATH%
[AIX] [HP-UX] [Solaris][Linux]
export PATH=$WAS_PATH:$PATH
Results
we have set up an environment so that we can develop Web services.
Next steps
Implement Web services applications. This page is a good starting point in learning about how to develop and implement a Java EE Web service.
Accessing the Samples (Samples Gallery)
Related tasks
Task overview: Implement Web services applications
Related
Web services specifications and APIs