编辑 Web Service

如果使用 IBM® WebSphere® 运行时环境创建了 Web Service 或 Web Service 客户机,则项目中就已生成部署信息。对于 Web Service,就生成了 webservices.xml。而对于 Web Service 客户机,生成的内容取决于项目的 J2EE 级别。如果项目的 J2EE 级别为 1.3,则会生成 webservicesclient.xml。如果项目的 J2EE 级别为 1.4,则会修改该项目的现有部署描述符。例如,对于 Web 项目,将把 Web Service 客户机部署信息添加至 web.xml。可以分别使用“Web Service 编辑器”和“Web Service 客户机编辑器”来编辑 webservices.xmlwebservicesclient.xml。还可以使用编辑器通过在编辑器中根据需要选择下列页面来编辑绑定文件(ibm-webservices-bnd.xmiibm-webservicesclient-bnd.xmi)和扩展文件(ibm-webservices-ext.xmiibm-webservicesclient-ext.xmi)中包含的设置:
  • ibm-webservices-bnd.xmi:“绑定”和“绑定配置”页面
  • ibm-webservicesclient-bnd.xmi:“Web Service 客户机绑定”和“端口绑定”页面
  • ibm-webservices-ext.xmi:“安全性扩展”页面
  • ibm-webservicesclient-ext.xmi:“安全性扩展”页面
对于 J2EE 1.4 项目中的 Web Service 客户机,可以使用项目的现有部署描述符的编辑器的“引用”和“WS 处理程序”页面。可以分别使用“WS 扩展”和“WS 绑定”页面来编辑扩展设置和绑定设置。

要编辑 webservices.xml 或 webservicesclient.xml 文件:

  1. 双击适当的 XML 文件,或者右键单击并选择打开方式 > Web Service 编辑器或者 Web Service 客户机编辑器
  2. 选择要编辑的适当选项卡:
    • 在“Web Service 编辑器”中,从下列选项卡中进行选择:
      • “Web Service”页面
      • “端口组件”页面
      • “处理程序”页面
      • 安全性:“安全性扩展”页面
      • 绑定:“绑定”页面和“绑定配置”页面
    • 在“Web Service 客户机编辑器”中,从下列选项卡中进行选择:
      • “服务引用”页面
      • “处理程序”页面
      • 安全性:“安全性扩展”页面
      • 绑定:“Web Service 客户机绑定”页面和“端口绑定”页面

    对绑定和扩展选项卡的更改将反映在绑定和扩展 XMI 文件中。

注: “Web Service 编辑器”不会验证您所作的更改。
使用条款 | 反馈
(C) Copyright IBM Corporation 1999, 2005. All Rights Reserved.