应用程序服务器提供命令行工具,以开发基于 Web
Services for Java™ Platform, Enterprise Edition
(Java EE) 规范的 Web Service 客户机和实现。在开发 Web Service 之前,必须先设置开发环境。
开始之前
在 WebSphere® Application Server 中设置 Web Service 开发环境之前,必须先安装 WebSphere Application Server。有关安装应用程序服务器的详细信息,请阅读有关安装应用程序服务器环境的相关信息。
关于此任务
通过完成以下操作来设置 Web service 开发环境。
过程
- 设置环境。
从 /profile_root/<application_server>/bin 目录运行 setupCmdLine.bat 命令。
![[Linux]](../images/linux.gif)
![[AIX]](../images/aixlogo.gif)
![[HP-UX]](../images/hpux.gif)
![[Solaris]](../images/solaris.gif)
诸如 AIX 或 Linux 之类的操作系统通过运行此命令将父 shell 的脚本
作为源以继承导出的变量:
. ./setupCmdLine.sh (Notice the space between the periods.)
从
. /profile_root/<application_server>/bin目录。
可以将 WAS_USER_SCRIPT 设置为 profile_root\<application_server>\bin\setupCmdLine.bat,它与运行 setupCmdLine 命令具有相同的效果。
在 Qshell 命令行中,从 . /profile_root/bin
目录运行 setupCmdLine 脚本。
从 /profile_root/<application_server>/bin 目录运行 setupCmdLine 脚本。
![[AIX Solaris HP-UX Linux Windows]](../images/dist.gif)
配置路径。 可以通过输入以下命令,将 WebSphere 和 Java bin 目录添加到您的路径中:![[Windows]](../images/windows.gif)
![[z/OS]](../images/ngzos.gif)
set PATH=%WAS_PATH%;%PATH%
![[AIX]](../images/aixlogo.gif)
![[HP-UX]](../images/hpux.gif)
![[Solaris]](../images/solaris.gif)
![[Linux]](../images/linux.gif)
export PATH=$WAS_PATH:$PATH
下一步做什么
实现 Web Service 应用程序。请参阅任务概述以获取实现 Web Service 应用程序的信息,从而了解如何开发和实现 Java EE
Web Service。