支持 JAX-RPC Web Service 的模块 - 部署描述符设置(ibm-webservices-bnd.xmi 文件)

ibm-webservices-bnd.xmi 文件是 Java™ API for XML-based RPC (JAX-RPC) Web Service 支持的 Web 模块或 Enterprise JavaBeans (EJB) 模块的部署描述符。 此文件包含 WebSphere® Application Server所需的 Web Service 运行时的信息。

[AIX Solaris HP-UX Linux Windows]您可使用组装工具编辑这些属性。 请参阅“配置 JAX-RPC Web Service 的 ibm-webservices-bnd.xmi 部署描述符”,以获取指示信息。

支持以下用户定义的组装属性:
  • wsDescNameLink

    Attribute of the wsdescBindings element that specifies the link to the corresponding <webservice-description-name> element in the webservices.xml file.

  • pc-name-link

    Attribute of the pcBindings element that specifies the link to the <port-component-name> element in the webservices.xml file.

  • scope

    pcBindings 元素的属性,它指定何时创建实现 Bean 的新实例。 可能值为 request、session 和 application。

您可以使用管理控制台来更改已部署的 Web Service 的作用域值。 单击 企业应用程序 > 应用程序 > Web 模块EJB 模块 > 模块 > Web Service 实现作用域

绑定文件示例

以下示例说明各种属性的拼写和位置。 您无法剪切和粘贴这些示例,因为它们不包含必需的标识属性。 如果将元素添加到由 WSDL2Java 命令生成的绑定文件模板,那么必须确认每个元素都具有值是唯一字符串的标识属性。 复审 WSDL2Java 命令生成的模板 xmi 文件以获取标识字符串的示例。 请参阅 Java API for XML-based Remote Procedure Call (JAX-RPC) 应用程序的 WSDL2Java 命令行工具,以了解有关此工具的更多信息。

<com.ibm.etools.webservice.wsbnd:WSBinding xmi:version="2.0" xmlns:xmi=
"http://www.omg.org/XMI" xmlns:com.ibm.etools.webservice.wsbnd=
"http://www.ibm.com/websphere/appserver/schemas/5.0.2/wsbnd.xmi">
	<wsdescBindings wsDescNameLink="AddressBookService">
		<pcBindings pcNameLink="AddressBook" scope="Application"/>
	</wsdescBindings>
</com.ibm.etools.webservice.wsbnd:WSBinding>