Set up a development environment for Web services

 

+

Search Tips   |   Advanced Search

 

Overview

WAS provides command-line tools to develop Web services clients and implementations that are based on the Web Services for J2EE specification. Set up your development environment before you start the developing Web services.

Before you can set up a Web services development environment within WAS, Install WAS.

Set up a Web services development environment by completing the following actions.

 

Procedure

  1. Set up the environment.

    [Windows]

    cd /profile_root\<application_server>\bin directory.
    setupCmdLine.bat
    [Linux] [AIX] [HP-UX] [Solaris]

    cd profile_root/<application_server>/bin
    . ./setupCmdLine.sh

    You can set WAS_USER_SCRIPT to...

    profile_root\<application_server>\bin\setupCmdLine.bat

    ...which has the same effect as running the setupCmdLine command.

  2. Configure the path...

    [Windows]

    set PATH=%WAS_PATH%;%PATH%
    [AIX] [HP-UX] [Solaris] [Linux]

    export PATH=$WAS_PATH:$PATH

 

Results

You have set up an environment so that you can develop Web services. If you get a NullPointerException error when the HTTP basic authentication fails, you can fix the problem by including...

<JAVA_HOME>\jre\lib\ext

...in the classpath at the command-line, or by manually editing it at WAS_EXT_DIRS.

 

What to do next

Implement Web services applications



Access the Samples (Samples Gallery)

 

Related tasks

Install
Implement Web services applications

 

Related Reference

Web services: Resources for learning