官术网_书友最值得收藏!

Using a routing action to statically route to another service

To route the message to another service (to a business service or even to another proxy service) a routing action inside a Route node needs to be used.

Getting ready

Make sure you have the current state of the basic-osb-service project available in Eclipse OEPE. We will start this recipe from there. If necessary, it can be imported from here: \chapter-1\getting-ready\echo-proxy-service-created.

How to do it...

In Eclipse OEPE, perform the following steps:

  1. Drag a Route node from the Design Palette and drop it on the message flow path below the interface. A green circle indicates that the item can be dropped here:
    How to do it...
  2. Rename the Route node to RouteToCustomerService.
  3. Drag a Routing action from the Communication section of the Design Palette into the Route node:
    How to do it...
  4. In the Properties of the Routing action click on the Browse button next to the Service field and select the business service CustomerService.biz (to be found in the business folder).
  5. In the Invoking drop-down list, select RetrieveCustomerByCriteria as the operation to be called:
    How to do it...
  6. Click on the Save button.

How it works...

We have created a single route to the operation RetrieveCustomerByCriteria of the external web service. But we not only have one operation on the proxy service to implement, our WSDL contains two operations, which we need to route to different operations on the external service. Therefore, just a single Routing action is not enough. We need to use an Operational Branch with a branch containing a different Routing action. Using an Operation Branch node will be shown in the next recipe.

We cannot select the Use inbound operation for outbound option, because the WSDL on the proxy service is no longer the same as the one on the business service (external service), that is, the operation names do not match.

See also

Check the next recipe for how to add an Operational Branch to the proxy service.

主站蜘蛛池模板: 农安县| 寿阳县| 乌海市| 湘阴县| 平塘县| 海原县| 阿克陶县| 六枝特区| 永登县| 晋州市| 正定县| 西充县| 东安县| 容城县| 德江县| 河东区| 屏东县| 黄平县| 福安市| 五寨县| 武威市| 郓城县| 江孜县| 玉山县| 无极县| 平潭县| 嘉义县| 高唐县| 临泽县| 苏尼特左旗| 泰来县| 广水市| 辽中县| 榆中县| 东乡族自治县| 龙南县| 乌苏市| 望谟县| 弥渡县| 永宁县| 遵化市|