Creating a new proxy service configuration
您可以將 Web 服務閘道設成純粹是服務的 Proxy,然後利用 JAX-RPC 處理程式清單來設定服務的送入要求訊息端點。
Before you begin
如需在具有匯流排功能之 Web 服務的整體配置中,如何配置 Web 服務閘道的高階作業視圖,請參閱Enabling web services through the service integration bus。
You configure each proxy service for a specific gateway instance, so you must create the gateway instance before you can configure any proxy services for it.
決定要用哪個方法來配置這些資源。 You can create a new proxy service by using the administrative console as described in this task, or by using the createWSGWProxyService command.
About this task
當您建立新的 Proxy 服務配置時,除了呼叫這個服務之外,閘道不會採取任何動作。 當您配置 Proxy 服務時,您也會配置一份利用 javax.xml.rpc.service.endpoint.address 來設定服務目標端點的 JAX-RPC 處理程式清單。 然後您再將處理程式清單附加到 Proxy 服務的入埠連接埠。
Proxy 服務配置沒有實際的目標服務,因此,閘道無法利用任何 WSDL 來配置服務呼叫。 呼叫的基本參數是以通用的 Proxy WSDL 檔來配置的(比方說,要用哪個連結),不過,您也可以將預設值,換成自己的對等通用 Proxy WSDL 檔。 如果沒有部署 JAX-RPC 處理程式清單,閘道會嘗試將所有要求傳送到 Proxy WSDL 檔的 <soap:target address> 標籤所指定的假網址。
For more detailed information, see JAX-RPC handlers and proxy operation.
To create a new proxy service configuration by using the administrative console, complete the following steps:
Procedure
Results
What to do next
- 對於 HTTP 作業,如果 Proxy 服務的網址是
發出要求的用戶端就會利用下列 URL 來指示它們是在傳送單向要求:http://host_name:port_number/wsgwsoaphttp1/soaphttpengine /your_bus/ProxyService/ProxyServiceInboundPort
http://host_name:port_number/wsgwsoaphttp1/soaphttpengine /your_bus/ProxyService/ProxyServiceInboundPort?operationMode=oneway
- 對於 JMS 作業,如果 Proxy 服務的 JMS 位址是
發出要求的用戶端就會利用下列 URL 來指示它們是在傳送單向要求:jms:/queue?destination=jndi_queue&connectionFactory= jndi_factory&targetService=your_bus/ProxyService/ProxyServiceInboundPort
jms:/queue?destination=jndi_queue&connectionFactory= jndi_factory&targetService= your_bus/ProxyService/ProxyServiceInboundPort&operationMode=oneway