WebSphere Application Server Network Deployment, Version 6.0.x   Operating Systems: AIX, HP-UX, Linux, Solaris, Windows
             [TIP: Focusing the table of contents and search results]

Setting up a development environment for Web services

WebSphere Application Server provides command-line tools to develop Web services clients and implementations that are based on the Web Services for Java 2 Platform, Enterprise Edition (J2EE) specification. You must set up your development environment before you start the developing Web services.

Before you begin

Before you can set up a Web services development environment within WebSphere Application Server, you must Install WebSphere Application Server.

About this task

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

Procedure

  1. Develop thin application client code on a server machine.

    The thin application client provides the necessary runtime to support the communication needs between the client and the server.

  2. Set up the environment.

    [Windows] Run the setupCmdLine.bat command from the /profile_root/<application_server>/bin directory.

    [Linux] [AIX] [HP-UX] [Solaris] Linux and UNIX-based platforms 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 . /profile_root/<application_server>/bin directory.

    You can set WAS_USER_SCRIPT to profile_root\<application_server>\bin\setupCmdLine.bat, which has the same effect as running the setupCmdLine command.

  3. Configure the path. You can add the WebSphere and Java bin directories to your path by typing:
    [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. This topic is a good starting point in learning about how to develop and implement a J2EE Web service.



Related concepts
Accessing the Samples (Samples Gallery)
Related tasks
Task overview: Installing
Task overview: Implementing Web services applications
Related reference
Web services: Resources for learning
Task topic    

Terms of Use | Feedback

Last updated: Mar 8, 2007 8:14:28 PM CST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/twbs_devenv.html

© Copyright IBM Corporation 2005, 2006. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)