引言
首先,下载 helloworldapp.zip,将其解压缩,得到 helloworld.ear,然后单击右侧的步骤 1,开始以下六个步骤。
图 1.在 http 和 jms 上使用 soap 访问 ejb web 服务
如果想绕过创建和修改 web 服务这一步,可以下载helloworldapp.zip(如果您还没有下载的话)并解压缩得到 helloworldsolution.ear。然后按照下面的步骤来测试这个方案:
- 将
helloworldsolution.ear文件导入到 application developer v5.1.1 工作区。- 选择 file => import。
- 选择 ear file 然后单击 next。
- 在 enterprise application import 窗口,定位到保存 ear 文件的位置。
- 选择 helloworldsolution.ear,然后单击 open。
- 设置 project name 为 helloworld。
- 单击 finish。
- 将
webservices.jar文件添加到 helloworldwebrouter 的构建路径中。- 在 j2ee perspective's project navigator 视图下,右键单击 helloworldwebrouter 模块,选择 properties。
- 在左侧栏中选择 java build path。
- 在左侧栏中选择 libraries 选项卡。
- 单击 add variable。
- 向下滚动,选择 was_50_plugindir 变量然后单击 extend...。
- 选择 file lib => webservices.jar 然后单击 ok。
- 单击 ok。
- 将
webservices.jar文件添加到 helloworldjmsrouter 的构建路径中。- 在 j2ee perspective's project navigator 视图下,右键单击 helloworldwebrouter 模块,选择 properties。
- 在左侧栏中选择 java build path。
- 在左侧栏中选择 libraries 选项卡。
- 单击 add variable。
- 向下滚动,选择 was_50_plugindir 变量然后单击 extend...。
- 选择 file lib => webservices.jar 然后单击 ok。
- 单击 ok。
- 为通过 jms 传输 soap 配置服务器(参阅步骤 2.为通过 jms 传输 soap 配置 websphere application server 测试环境)。
- 测试 web 服务(参阅步骤 6.为两种传输方法测试 web 服务客户机)。
步骤 1.导入 helloworld 企业应用程序
helloworld enterprise application archive(ear)这个文件包含一个 ejb 模块——helloworldejb。这个模块里有一个无状态会话 bean——hellowordssb。该 bean 有一个 getmessage() 方法,调用这个方法时会返回一个字符串“hello world”。下载 helloworld.ear 按照下面步骤将 ear 文件导入到 application developer 工作区。
- 将
helloworld.ear文件导入到 application developer 工作区。- 选择 file => import。
- 选择 ear file,然后单击 next。
- 在 enterprise application import 窗口,定位到保存 ear 文件的位置,然后选择
helloworld.ear文件。 - 设置 project name 为 helloworld(缺省值)。
- 单击 finish。
步骤 2.为通过 jms 传输 soap 配置 websphere application server 测试环境
要为 web 服务实现提供 soap/jms 支持,必须创建所需的 jms 资源(队列(queue)、队列连接工厂(queue connection factories)和侦听器端口(listener ports))来处理和响应传入的消息。下面的步骤介绍了如何为实现 helloworld web 服务配置所需的 jms 资源。
- 创建新的 server configuration。
- 选择 file => new => other。
- 在左侧栏中单击 server。
- 在左侧栏中单击 server 和 server configuration。
- 单击 next。
- 在 create a new server and server configuration 的窗口中:
- 设置 server name 为“testserver”。
- 设置 server type 为 websphere version 5.1 => test environment (缺省选项)。
- 单击 finish。
创建操作所得的新服务器配置和服务器配置条目如图 2 所示。
图 2.创建新服务器和服务器配置

- 打开 server perspective 和 testserver settings 窗口。
- 选择 window => open perspective => other。
- 选择 server 然后单击 ok。
- 在 server perspective's server configuration 视图(在屏幕的左下方)中,展开 servers 并双击 testserver。
- 在 server settings 窗口中,选择 jms 选项卡以打开 websphere jms provider options。
- 创建一个队列:
- 在 server settings => jms server properties 下单击 add。
- 在弹出的 add queue name 窗口中,设置 name 为“hwinboundq”。
- 单击 ok。
- 在 server settings => jms server properties => jms provider 下选中 mq simulator for java developers 单选框。
- 为入站队列创建一个队列连接工厂(qcf)。
- 在 server settings => jms connection factories => wasqueueconnection factory 条目下单击 add。
- 在弹出的 add wasqueueconnectionfactory 窗口中:
- 设置 name 为“hwinboundqcf”。
- 设置 jndi name 为“jms/hwqcf”。
- 单击 ok。
添加操作所得的 wasqueueconnectionfactory 条目如图 3 所示。
图 3.添加 wasqueueconnectionfactory - hwinboundqcf

- 为出站队列创建一个出站 qcf。(为通过 jms 传输 soap 发送一个响应消息,这个条目是必需的而且一定要如下所示。)
- 在 server settings => jms server properties => wasqueueconnection factory 条目下单击 add。
- 在弹出的 add wasqueueconnectionfactory 窗口中:
- 设置 name 为“webservicesreplyqcf”。
- 设置 jndi name 为“jms/webservicesreplyqcf”。
- 单击 ok。
添加操作所得的 wasqueueconnectionfactory 条目如图 4 所示。
图 4.添加 wasqueueconnectionfactory - webservicesreplyqcf

- 为传入消息创建一个 jms destination。
- 在 server settings => jms destinations => wasqueue 条目下单击 add。
- 在弹出 add wasqueue 的窗口中:
- 设置 name 为“hwinboundq”。
- 设置 jndi name 为“jms/hwq”。
- 单击 ok。
添加操作所得的 wasqueue 条目如图 5 所示。
图 5.添加 wasqueue - hwinboundq

- 在 server settings 窗口中,选择 ejb 选项卡查看其他 ejb 容器设置中的侦听器端口。
- 添加一个 jms 侦听器端口。
- 在 server settings => listener ports 下,单击 add。
- 在弹出的 add listener port 窗口中:
- 设置 name 为“hwport”。
- 向下滚动选择 jms/hwqcf 作为连接工厂的 jndi 名称。
- 向下滚动选择 jms/hwq 作为目的地的 jndi 名称。
- 单击 ok。
添加操作所得的侦听器端口条目如图 6 所示。
图 6.添加 listener port - hwport

- 在 server configuration 窗口中,选择 environment 选项卡查看 environment options。
- 将
urlprotocols.jar文件添加到服务器的类路径中。- 在 class path 下单击 add external jars。
- 定位到
<wsad_installdir>/runtimes/base_v51/lib目录。 - 选择文件
urlprotocols.jar。 - 单击 open。
要点:对于 soap/jms,在 websphere application server v5.1 测试服务器的类路径中必须包括
urlprotocols.jar文件。这个文件包含测试应用程序必需的 jms 协议处理类。
- 保存对 server configuration 的修改然后关闭编辑器。
- 选择 file => save。
- 如果有提示,单击 yes 合并对服务器配置的修改。
- 关闭编辑器。
我们已经为 soap/jms 成功配置了 websphere application server v5.1 测试环境。
步骤 3.为通过 jms 传输 soap 创建一个无状态会话 ejb web 服务
在这一步里,我们使用 application developer 创建一个新的 ejb 模块来将 soap/jms 路由到无状态会话 bean web 服务的实现。然后使用工具创建 web 服务实现本身。在步骤 4 中将为 soap/jms 和 http/jms 修改 web 服务实现。
application developer 在 ejb 模块中创建消息驱动 bean(mdb)。这个 ejb 模块独立于无状态会话 bean web 服务实现模块。如果有必要,这个 mdb 会通过队列来处理传入消息、调用 web 服务并发送响应消息。mdb 的创建是在 application developer 创建 web 服务实现的过程中隐式地进行。但是,包含结果 mdb 的 ejb 模块必须在为 soap/jms 创建 web 服务实现之前创建。
根据本教程的目的,我们将创建一个新的 ejb 模块——helloworldjmsrouter,它将 soap/jms 请求路由到 hellowordssb web 服务实现。
- 在工作区中打开 j2ee perspective。
- 创建 jms router module。
- 在 project navigator 视图中,右键单击 helloworld enterprise application。
- 选择 new => other。
- 在新弹出窗口的左侧栏中单击 ejb。
- 在新弹出窗口的右侧栏中单击 ejb project。
- 单击 next。
- 选择 create 2.0 ejb project bullet (缺省地被选中)。
- 单击 next。
- 输入“helloworldjmsrouter”作为 project name。
- 单击 finish。
- 如果有提示,单击 ok 修改服务器配置并向 server configuration 中添加 router module。
- 为 helloworld 无状态会话 bean 创建 ejb web 服务。
- 在 project navigator 视图中。
- 右键单击 helloworldejb ejb 模块。
- 选择 new => other。
- 在新弹出窗口的左侧栏中单击 web services。
- 在新的弹出窗口右侧栏格中单击 web service。
- 单击 next。
所得的新 xml web 服务选项如图 7 所示。
图 7.创建新的 xml web 服务

- 在 web services 窗口中:
- 向下滚动选择 ejb web service 作为 web service type。
- 在 web project 中取消 start web service。
- 单击 next。
所得的 web 服务条目如图 8 所示。
图 8.web service - ejb web service

- 在 service deployment configuration 窗口中:
- 检查 server 是否被设置为 testserver,如果还没有,选择 edit。
- 选择 existing servers => test server。
- 单击 ok。
- 向下滚动 router project 然后选择“helloworldjmsrouter”。
- 单击 next。
要点:如果使用的是 application developer v5.1 (为 was 5.0.2 开发的),它会在同一个 ejb 模块中创建一个 mdb 作为无状态会话 bean web 服务实现。因此,不需要创建新的 ejb project ,router project 会被设置为 hellowordejb。在 application developer v5.1 中启用 soap/jms 选项和创建 mdb 时必须这样做,这个 mdb 可以通过 helloworldejb module 的队列来处理传入消息。
所得的服务部署配置条目如图 9 所示。
figure 9. service deployment configuration - ejb web service图 9.服务部署配置 - ejb web 服务

- 在 web service ejb selection 窗口中:
- 单击 browse ejb beans。
- 选择无状态 ejb bean
helloworldssb。 - 单击 ok。
- 输入 jms uri properties,该属性被用作 jms 服务端点 url。这些属性的大部分会自动填充。
- 选择 soap over jms。
- 设置队列的 jms 目的地。
- 向下滚动选择 jms/hwq 作为目标队列或主题 jndi 名称(缺省选中)。
- 向下滚动选择 jms/hwqcf 作为 jms connection factor (缺省选中)。
- 设置请求即将分派到的端口组件 name 为“hwssbportcomponent”。
- 向下滚动选择 hwport 作为消息驱动 bean 的侦听器输入端口的名称(缺省选中)。
- 单击 next。
所得的 web 服务 ejb 选项条目如图 10 所示。
图 10.web 服务 ejb 选项 - ejb web 服务

- 在 web service java bean identity 上:
- 单击 next 接受缺省设置。
- 在为 ws-i compliance 弹出的 web 服务警告窗口中单击 details 以浏览关于启用 jms 的警告。
- 单击 ignore。(该警告是必然出现的。)
- 单击 finish。
步骤 4.a.修改 web 服务部署描述符来为 web 路由器模块创建端口组件和绑定
在这一步,将为 soap/http 传输访问 helloworld web 服务实现创建一个新的端口组件和绑定配置
- 在 j2ee perspective project navigator 视图 中:
- 展开 helloworldejb => ejbmodule => meta-inf。
- 双击 webservices.xml 打开 web services editor。
- 为便于浏览,双击 web services editor 选项卡使编辑器最大化。
- 在 web services editor 窗口中,选择 port components 选项卡,查看 port component 的设置。在 port components 下,单击 add 创建一个新的缺省的“port component”。
- 高亮显示新创建的端口组件。
- 如果必要的话,向下滚动右侧栏到 port component implementation details。
- 设置 port component name 为“helloworld”。
- 对 wsdl port 条目:
- 设置 namespace uri 为“http://ejb.webservices.test.ibm.com”。
- 设置 local part 为“helloworld”。
- 设置 service endpoint interface 为
com.ibm.test.webservices.ejb.helloworldssb。 - 选中 ejb link 单选框。
- 向下滚动然后选择 helloworldssb 作为 service implementation bean (缺省选中)。
所得的端口组件条目如图 11 所示:
图 11.web 服务编辑器 - 端口组件。

- 在 web services editor 中,选择 bindings 选项卡以浏览 web 服务绑定。
- 在 web service description bindings 部分高亮显示 helloworldssbservice。
- 如果有必要,在右侧栏向下滚动到 port component binding。
- 单击 add。
- 在 port component binding 对话框窗口中:
- 向下滚动选择 helloworld 作为 pc name link。
- 向下滚动并设置 session 为 scope。
- 单击 ok。
所得的端口组件绑定对话框条目如图 12 所示:
图 12.web 服务编辑器 - 端口组件绑定对话框

- 保存所作的修改并关闭 web services editor。
- 选择 file => save。
- 关闭 editor。
- 修改
ibm-webservices-bnd.xmi文件中缺省的 pcbindings 配置信息。在 j2ee perspective project navigator 视图中:- 展开 helloworldejb => ejbmodule => meta-inf。
- 双击 ibm-webservices-bnd.xmi 来打开 xml editor。
- 选择 source 选项卡。
- 删除安全绑定元素。
原来的 pcbindings 条目:
<pcbindings xmi:id="pcbinding_1068756918823" pcnamelink="helloworld" wsdlserviceqnamenamespacelink="" wsdlserviceqnamelocalnamelink="" scope="session"> <securityrequestreceiverbindingconfig xmi:id="securityrequestreceiverbindingconfig_1068756918823"/> <securityresponsesenderbindingconfig xmi:id="securityresponsesenderbindingconfig_1068756918823"/></pcbindings>修改后的 pcbindings 条目:
<pcbindings xmi:id="pcbinding_1068756918823" pcnamelink="helloworld" wsdlserviceqnamenamespacelink="" wsdlserviceqnamelocalnamelink="" scope="session">*** 这里删除了以下元素 ***</pcbindings> - 保存修改并关闭 xml editor。
- 选择 file => save。
- 关闭 editor。
这些是 web 服务部署描述符所需的全部修改。
步骤 4.b.使用必要的端口和绑定配置修改 web services description language(wsdl)文件
在这一步,将使用所需的端口和绑定定义来修改 helloworldssb.wsdl 文件,以利于 soap/http 对 helloworld web 服务实现的请求。
- 在 j2ee perspective project navigator 视图中:
- 展开 helloworldejb => ejbmodule => meta-inf => wsdl。
- 双击 helloworldssb.wsdl 打开 wsdl editor。
- 为便于浏览,双击 helloworldssb.wsdl 选项卡使编辑器最大化。
- 选择 graph 选项卡查看 graphical wsdl 表示。
- 在 services section 中:
- 右键单击 helloworldssbservice service definition
- 选择 add child => port。
- 在新弹出的 new port 窗口中,设置 name 为“helloworld”。
- 单击 ok。
- 在 services section 中:
- 右键单击 helloworld port definition。
- 选择 set binding。
- 选择 create a new binding bullet。
- 在弹出的 specify binding 窗口中,设置绑定 name 为“helloworldsoapbinding”。
- 单击 finish。
所得的指定绑定条目如图 13 所示。
图 13.wsdl 编辑器 - 端口定义指定绑定

- 在左下侧框的 port definition 中,向下滚动,为 helloworld port 设置 intf:helloworldsoapbinding 作为 binding。
- 在 services section 中:
- 右键单击 helloworld port definition。
- 单击 set porttype。
- 选择 select an existing port type bullet。
- 选择 intf:helloworldssb port type。
- 单击 finish。
所得的指定端口类型条目如图 14 所示。
图 14.wsdl 编辑器 - 端口定义指定端口类型

- 在 services section 中:
- 右键单击 helloworld port definition。
- 选择 add extensibility element => wsdlsoap:address。
- 在 services section 中:
- 展开 helloworld port definition。
- 选择前面创建的 wsdlsoap:address
- 在左下侧框的 wsdlsoap:address 段中:
- 单击 value field 中的第一条“http://www.ibm.com”进行编辑。
- 将值设置为“http://localhost:9080/helloworldwebrouter/services/helloworld”。
- 在 web services editor 中,选择 source 选项卡,查看 source editor。
- 从 hwssbportcomponentsoapbinding 将 wsdlsoap:binding 和 wsdl:operation 的信息复制到 helloworldsoapbinding,如下所示:
<wsdl:binding name="hwssbportcomponentsoapbinding" type="intf:helloworldssb"> ***从这里开始复制元素****</wsdl:binding><wsdl:binding name="helloworldsoapbinding" type="intf:helloworldssb"> ***将复制的元素粘贴到这里***</wsdl:binding> - 将 helloworldsoapbinding 中 wsdlsoap:binding 元素的传输元素由 jms 更改为 http,如下所示:
<wsdl:binding name="helloworldsoapbinding" type="intf:helloworldssb"> <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/jms"/> ...</wsdl:binding> - 保存对 helloworldssb.wsdl 所作的修改并关闭 wsdl editor。
- 选择 file => save。
- 关闭 editor。
以上这些是对 soap/jms 和 soap/http 请求 helloworld web 服务实现所需的 helloworldssb.wsdl 文件所做的全部修改。
步骤 4.c.在 http 路由器模块上创建 soap
在这一步里,创建附加的 web 路由器模块来处理对 helloworld web 服务实现的传入 http 请求。
- 在 j2ee perspective project navigator 视图中:
- 右键单击 helloworldejb 项目。
- 选择 web services => endpoint enabler。
- 在 select transports 下,http 缺省地被选中。
- 设置 http 路由器模块的名称为“helloworldwebrouter”。
- 将与 http 路由器模块相关联的上下文根设置为“helloworldwebrouter”。
- 单击 ok。该操作可能需要花费几分钟的时间。
- 如果提示是否保存对 server configuration 所作的修改,单击 ok。
所得的端点启用程序配置条目如图 15 所示。
图 15.web 服务端点启用程序 - http 路由器

helloworldwebrouter web 模块创建完成,开始处理 soap/http 请求。
还可以选择使用 endptenabler 命令行工具来创建 helloworldwebrouter 模块。 websphere application server 5.1 为开发 web 服务实现提供了一个如同 web 服务客户机的命令行工具—— endptenabler。endptenabler 命令行工具提供一个便利的向支持 web 服务的应用程序( ear 文件 )添加一个或多个路由模块的方法。每一个路由模块都被创建并支持 jms 或 http 的 服务端点。例如,要创建如上所述的相同的 http 端点,可以使用如下的命令行:
|
本教程的属性文件包含以下条目:
|
本教程并没有详细描述 endptenabler 命令行工具。要获取有关endptenabler 和 命令行选项的详细信息,请参阅 websphere application server info center。endptenabler 应该在支持 web 服务的应用程序部署之前就运行于 websphere application server 5.1。
步骤 5.从相应的 wsdl 生成 web 服务客户机
在这一步,将创建 test client 来测试我们的 web 服务。
- 在 j2ee perspective project navigator 中:
- 右键单击 helloworld 项目。
- 选择 new => other。
- 在新弹出窗口的左侧栏中,单击 web services。
- 在新弹出窗口的右侧栏中,单击 web service client。
- 单击 next。
- 在 web services 窗口中:
- 选择 java proxy 作为 client proxy type(缺省选中)。
- 选择 test generated proxy。
- 单击 next。
所得的 web 服务客户机选择结果如图 16 所示:
图 16.web 服务客户机代理配置

- 在 client environment configuration 窗口中:
- 选择 use defaults bullet(缺省选中)。
- 设置或输入“helloworldwebjmsclient”作为 client web project。
- 单击 next。
所得的 web 服务客户机条目如图 17 所示:
图 17.web 服务客户机环境配置

- 在 web service selection page 窗口中:
- 选择 browse 来定位
helloworldssb.wsdl文件。 - 选择 helloworldejb => ejbmodule => meta-inf => wsdl => helloworldssb.wsdl。
- 单击 ok。
- 单击 next。
- 选择 browse 来定位
- 在 web service proxy page 中:
- 选择 generate proxy (缺省选中)。
- 单击 next。
- 在 web service client test 窗口中:
- 选择 test the generated proxy(缺省选中)。
- 取消选中的“gethelloworldssb”和“usejndi”方法(缺省选中)。
- 取消选中的“run test on server”(缺省选中)。
- 单击 finish。
所得的 web 服务客户机测试条目如图 18 所示。
图 18.web 服务客户机测试

我们已经成功的生成了一个 web 服务测试客户机,使用 soap/jms 和 soap/http 这两种传输机制来调用 helloworld web 服务实现。
步骤 6.为两种传输方法测试 web 服务客户机
- 在 j2ee perspective project navigator中:
- 展开 helloworldwebjmsclient=>webcontent => sample => helloworldssbproxy。
- 右键单击 testclient.jsp。
- 选择 run on server。
- 选择 use an existing server bullet(缺省地被选中)。
- 从前面配置好的服务器列表中选择 testserver(缺省选中)。
- 单击 finish。将启动 testserver,打开 web browser 并调用
http://localhost:9080/helloworldwebjmsclient/sample/helloworldssbproxy/testclient.jsp。所得的服务器选择条目如图 19 所示。
图 19.web 服务测试客户机服务器选择

- 双击 web browser 选项卡。最大化 web browser 以便于浏览。
- 在 web browser 中:
- 在 methods 框中单击getendpoint。
- 在 inputs 框中单击 invoke。
调用 getendpoint 操作所得结果如图 20 所示。
图 20.web 服务测试客户机 getendpoint 调用

result 框中包含着 jms 端点 url 字符串。
- 在 web browser 中:
- 在 methods 框中单击 getmessage。
- 在 inputs 框中单击 invoke。
在 result 框中显示“hello world”信息。图 21 显示了调用测试客户机 getmessage 操作所得的结果。
图 21.hello world

接下来,测试在 http 上使用 soap 的 web 服务。
- 在 web browser 的 methods 框中,单击 setendpoint(string)。
- 要在 http 上使用 soap 调用 web 服务,请在 inputs 框的端点方框中输入
http://localhost:9080/helloworldwebrouter/services/helloworld"。 - 在 web browser 中,单击 invoke。
注意:要在 jms 上使用 soap 调用 web 服务,url 应该设置为
jms:/queue?destination=jms/hwq&connectionfactory=jms/hwqcf&targetservice=hwssbportcomponent"。 - 在 web browser 中:
- 在 methods 框中单击 getendpoint。
- 在 inputs 框中单击 invoke。
- 在 result 框中包含 http 端点的 url。
- 在 web browser 中:
- 在 methods 框中单击 getmessage。
- 在 inputs 框中单击 invoke。
- 在 result 框中显示“hello world”信息。
我们已经成功的测试了 web 服务实现和使用 soap/jms 和 soap/http 传输机制来调用 web 服务的功能。
故障诊断提示和技巧
问题:
测试应用程序和初始化 testclient.jsp 时,会发生如下的异常:
|
解答:
没有把 urlprotocols.jar 文件添加到服务器类路径。参见步骤 2.为通过 jms 传输 soap 配置服务器的步骤 11。
问题:
生成 web 服务时,弹出一个窗口显示如下信息:“iwab044e unable to get url for project p/helloworldejb”。
解答:
取消操作,关闭所有打开的编辑器和 server configuration 窗口。重新生成 web 服务。如果问题依然存在,则工作区可能处于不一致状态。请尝试重新启动 application developer v5.1.1。
问题:
启动 helloworldejb.jar 文件时,ejb 模块启动失败或是在控制台上纪录如下错误信息:
|
|
ibm-webservices-bnd.xmi 文件包含一个无效范围或为端口组件 配置的缺省设置—— portcomponentname=helloworld。检查 helloworldejb => ejbmodule => meta-inf => ibm-webservices-bnd.xmi 文件中的如下条目:
|
解答:
删除安全绑定元素并用下面修改过的条目替换上面的相应条目。参阅步骤 4.a.修改 web 服务的部署描述符来为 web 路由模块创建端口组件和绑定中的步骤 7。
|
问题:
为 jms url 设置端点时, setendpoint 函数将 url 修改为无效的 jms url。调用 getmessage 操作时,引发如下错误:
|
例如,设置 endpointurl 为:
|
端点被错误的设置为:
|
在生成的客户机代码里,检查 result.jsp 文件中的 markup 方法,该方法是否修改了传递到 setendpoint(string) 的字符串并且将字符串中出现的 '&' 全部替换为"&" ,如下面的代码段所示:
|
解答:
修改客户机代码,以使 jms url 设置正确并且当将端点设置到 jms url 时不会发生错误。可以修改代码,将 buffer.append("&"); 替换为 buffer.append('&'); ,或者删除 case '&': 子句,还可以注释掉相关的代码,如下所示:
|
修改代码后,就可以通过改变端点来实现在 jms 和 http 端点 url 之间的替换。
结束语
本教程演示了如何使用 application developer v5.1.1 和 websphere application server 5.1 test environment 来开发和测试一个名为 helloworld 的服务实现,该服务通过 soap/jms 和 soap/http 传输无状态 bean。application developer 缩短了通过 jms 和 http 传输机制实现对 soap 的支持所需的时间。
参考资料
- web services for j2ee, v1.0 [jsr-109]
- java api for xml-based rpc (jax-rpc) [jsr-101]
- 使用 websphere v5 工具和技术开发和部署 web 服务——第 1 部分:创建和测试 web 服务
- 在 websphere studio application developer v5.1 中为 j2ee web 服务提供支持——第 1 部分:服务器环境
- ibm 红皮书:websphere v5.1 application developer v5.1.1 web 服务手册
- websphere application server 信息中心
关于作者 tendai chinoda 是 ibm business partner technical support websphere competency center 的软件工程师。为 ibm websphere 家族产品的首要商业伙伴(business partners) 提供开发者到开发者(developer-to-developer) 的技术支持和启动服务。tendai 通过了 application developer v5.1 的 ibm certified solution developer- web services development、 websphere application server ae v4 的 ibm certified systems expert- administration 、ibm certified system administrator-websphere application server v 以及 sun certified programmer-java 2 platform 等认证。他的专长和兴趣包括 websphere application server v4 and v5 系统管理和体系结构、 websphere studio application developer v5 j2ee、 web 服务开发、wsdl、soap、jms、jca和jdbc等。可以通过 tendai@us.ibm.com 与 tendai 联系。 |
| 到页首 | |
| 描述 | 文件类型 | 文件大小 | 下载方式 |
| helloworldapp.zip | zip | 126 kb | http |
tendai chinoda 是 ibm business partner technical support websphere competency center 的软件工程师。为 ibm websphere 家族产品的首要商业伙伴(business partners) 提供开发者到开发者(developer-to-developer) 的技术支持和启动服务。tendai 通过了 application developer v5.1 的 ibm certified solution developer- web services development、 websphere application server ae v4 的 ibm certified systems expert- administration 、ibm certified system administrator-websphere application server v 以及 sun certified programmer-java 2 platform 等认证。他的专长和兴趣包括 websphere application server v4 and v5 系统管理和体系结构、 websphere studio application developer v5 j2ee、 web 服务开发、wsdl、soap、jms、jca和jdbc等。可以通过 tendai@us.ibm.com 与 tendai 联系。
闽公网安备 35060202000074号