JAX-RPC handlers and proxy operation

您可以將 Web 服務閘道設成純粹是服務的 Proxy,然後利用 JAX-RPC 處理程式清單來設定服務的送入要求訊息端點。

當您建立新的 Proxy 服務配置時,除了呼叫這個服務之外,閘道不會採取任何動作。 當您配置 Proxy 服務時,您也會配置一份利用 javax.xml.rpc.service.endpoint.address 來設定服務目標端點的 JAX-RPC 處理程式清單。 然後您再將處理程式清單附加到 Proxy 服務的入埠連接埠。

When the gateway receives a message, it needs to know whether the request being invoked is request and response, or one-way. Because the gateway does not parse the SOAP message, it cannot get this information from the message. Therefore the requesting clients must append an operationMode HTTP query string parameter to the web address for the gateway service. The value of this parameter is either oneway or requestResponse. For example, if the web address of the proxy service configuration is as follows:
http://host_name:port_number/wsgwsoaphttp1/soaphttpengine/your_bus/ProxyService/ProxyServiceInboundPort
(where host_name and port_number are the host name and port number for this application server), then requesting clients indicate that they are sending a one-way request by using the following URL:
http://host_name:port_number/wsgwsoaphttp1/soaphttpengine/your_bus/ProxyService/ProxyServiceInboundPort?operationMode=oneway
If the operationMode parameter is missing, the gateway assumes that the requested method is requestResponse.
Proxy 服務配置沒有實際的目標服務,因此,閘道無法利用任何 WSDL 來配置服務呼叫。 呼叫的基本參數是以通用的 Proxy WSDL 檔來配置的(比方說,要用哪個連結),不過,您也可以將預設值,換成自己的對等通用 Proxy WSDL 檔。 The supplied proxy WSDL file defines a single portType with two operations: oneway and requestResponse. If the operation mode is oneway, then the gateway selects the one-way operation from the WSDL. The supplied proxy WSDL file is located here:
http://host_name:port_number/SIBWS/proxywsdl/ProxyServiceTemplate.wsdl
(for example http://your.server.name:9080/SIBWS/proxywsdl/ProxyServiceTemplate.wsdl).

For an individual proxy service, you can override the default proxy WSDL file and supply an alternative WSDL when you create a new proxy service configuration or modify an existing proxy service configuration.

If you want the gateway to use a different default proxy WSDL file, then you specify the web address of the new default proxy WSDL file when you create a new gateway instance. Your new default proxy WSDL file must implement the same port type, binding, service, and port names as the supplied default proxy WSDL file. The only differences that can exist are in the extension elements used to configure the binding. In your new default proxy WSDL file, the value of the <soap:target address> tag must be a properly formatted web address but it does not have to point to a real page. For example, a value of this.is.a.fake.url is rejected, whereas a value of http://this.is.a.fake.url is accepted. The JAX-RPC handler list uses the javax.xml.rpc.service.endpoint.address to override this value at run time with the real web address.

Note: 如果沒有部署 JAX-RPC 處理程式清單,閘道會嘗試將所有要求傳送到 Proxy WSDL 檔的 <soap:target address> 標籤所指定的假網址。

指出主題類型的圖示 概念主題



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