Creating a new JAX-RPC handler configuration

Create a JAX-RPC handler configuration for use, as part of a handler list, with service integration bus-deployed web services. 處理程式會在連接埠監視訊息,並且根據每則訊息的傳送端和內容,採取適當的行動。

Before you begin

這項作業假設您已建立您的處理程式。您可以利用 IBM® Rational® Application Developer 或類似的工具來執行這個動作。 如需相關資訊,請參閱 IBM developerWorks® 的 Support for J2EE Web Services in WebSphere® Studio Application Developer V5.1 -- Part 3: JAX-RPC Handlers 一文。

You must also make the handler class available to the server or cluster that hosts the port for the service that you want to monitor, as detailed in Loading JAX-RPC handler classes.

About this task

Java™ API for XML 型遠端程序呼叫 (JAX-RPC) 處理程式,是用來執行某範圍之處理作業的 Java 類別。 例如:記載訊息、轉換其內容或者終止送入的要求。 如果要讓 WebSphere Application Server 知道您的處理程式,以及讓處理程式可供併入一或多份處理程式清單中,請利用管理主控台來建立一個新的處理程式配置。

Procedure

  1. In the navigation pane, click 服務整合 -> Web 服務 -> JAX-RPC 處理程式. The JAX-RPC handlers collection form is displayed.
  2. Click New. The JAX-RPC handlers settings form is displayed.
  3. Type the following general properties:
    Name
    Type the name by which the handler is known.
    這個名稱必須是唯一的,且必須遵循下列語法規則:
    • 不可以 "."(句點)開頭。
    • 不可以空格開頭或結尾。
    • 它不能包含下列中的任何字元:\ / , # $ @ : ; " * ? < > | = + & % '
    For example TestHandler.
    Description
    Type the (optional) description of the handler.
    Class name
    Type the name of the class that is to be instantiated. For example com.ibm.jaxrpc.handler.TestHandler.
    Note: 您可以用不同的處理程式名稱來建立若干實例,讓各實例指向相同的處理程式類別,以配置單一處理程式的多重實例。
  4. Click OK. The general properties for this item are saved, and the additional properties options are made available.
  5. Type the following additional properties:
    SOAP roles
    Add SOAP actor definitions to the list of SOAP roles in which this handler acts. For more information, see the SOAP specification.
    JAX-RPC headers
    Add JAX-RPC header definitions (Namespace URI and Local part) to the list of JAX-RPC headers against which this handler operates. JAX-RPC headers are SOAP headers that are processed by a JAX-RPC handler.
    Custom properties
    Add custom properties (name/value pairs, where the name is a property key and the value is a string value that can be used to set internal system configuration properties).
  6. 儲存對主要配置所做的變更。

Results

If the processing completes successfully, the list of handlers is updated to include the new handler. Otherwise, an error message is displayed.

What to do next

To use this handler, add it to a handler list as described in Creating a new JAX-RPC handler list or Modifying an existing JAX-RPC handler list.

指出主題類型的圖示 作業主題



時間戳記圖示 前次更新: July 9, 2016 11:16
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=tjw_jaxrpc_handler_new
檔名:tjw_jaxrpc_handler_new.html