uCosminexus Service Platform, Overview
You can dynamically change SOAP adapter communication destination by using the connection destination URL set in the business process. If you set in advance the communication destination URL in the business process, the communication destination changes when the service adapter is executed. This enables reduction in the number of created service adapters.
If the connection destination URL is not set in the business process, perform SOAP communication in the connection destination URL of Web service set in the development environment.
The following points describe the flow of dynamic change process in communication destination in SOAP communications in each communication infrastructure:
The following figure shows the flow of dynamic change process in the communication destination when SOAP communication infrastructure is used in communication infrastructure:
Figure 2-22 Flow of dynamic change process in communication destination when SOAP communication infrastructure is used in communication infrastructure
The following figure shows the flow of dynamic change process in the communication destination when JAX-WS engine is used in the communication infrastructure:
Figure 2-23 Flow of dynamic change process in communication destination when JAX-WS engine is used in communication infrastructure
The following points describe an example of dynamic change of connection destination information by using the connection destination information file.
The following figure shows an example of a business process using connection destination information file:
Figure 2-24 Example of business process using connection destination information file (in SOAP adapter)
The following figure shows an example of creating WSDL that generates user-defined reception:
In this example, service component URL to be connected is sent by SOAP header.
The following figure shows an example of setting data transformation activities used in the business process shown in "Figure2-24 Example of business process using connection destination information file (in SOAP adapter)":
Here, "Header request data" is specified in the transformation source and "Connection destination URL" is specified in the transformation destination.
Figure 2-25 Example of setting data transformation activities (in SOAP adapter)
The following figure shows the definition of transformation mapping:
Figure 2-26 Example of setting transformation mapping (in SOAP adapter)
Define URL for connecting to Web service in the connection destination information file (XML schema) used for performing setup in a service adapter.
Connection destination information file is provided in the service platform.
<Installation directory of the service platform>/CSC/schema/connection/connection_soap_adapter.xsd
<?xml version="1.0" encoding="UTF-8"?> <!-- DO NOT EDIT THIS FILE. --> <xsd:schema elementFormDefault="qualified" targetNamespace="http://www.hitachi.co.jp/soft/xml/cosminexus/csc/connection/change/soap" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:element name="soapAddress"> <xsd:complexType> <xsd:sequence> <xsd:element name="endpointURL" type="xsd:string"/> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema> |
The following figure shows an example of setting connection destination information used in the business process shown in "Figure2-24 Example of business process using connection destination information file (in SOAP adapter)". Set connection destination information in the header assigned variable of the invoke service activity. You can see the information set here in SOAP adapter.
Figure 2-27 Example of setting connection destination information (setting invoke service activity)
All Rights Reserved. Copyright (C) 2015, Hitachi, Ltd.