uCosminexus Service Platform, Setup and Operation Guide
When directly invoking service components of service adapter from standard reception, you must create the user message (XML document) that requests service components in service requester. Thus, if there is a mistake in the XML created in service requester, system cannot invoke the correct service component. The following figure shows the relationship between the SOAP message in SOAP communication and user message.
Figure 7-111 Figure Relationship between SOAP message in SOAP and user message
When there is a mistake in user message (when you execute a message in a format which is different than the format of format definition), the error contents will differ depending on the difference in the protocol of service adapter.
Note that depending on the format of the message, there may be instances wherein, instead of an error in service adapter, there may be an exception in service component; or instead of an error in service component, an unexpected response may be returned.
The specifications of service components that can be called from SOAP adapter must meet the application scope which is given in "2.6.1 Applicability of the service components that use Web service" in "Service Platform Basic Development Guide". Operation of service components which are out of the application scope cannot be guaranteed.
The specifications of service components which can be invoked from SessionBean adapter, must meet the application scope, indicated in"2.6.2 Application Scopes of Service Components That Use SessionBean" in "Service Platform Basic Development Guide". Operation of service components which are out of the application scope cannot be guaranteed.
There is no error in the service adapter of MDB (WS-R/DB queue), in case of an error in the user message which is requested from service requester. Schema is defined at the time of defining in the development environment, but normally, even the messages that are not in the format defined in this schema are sent to the asynchronous queue. If you create such that the user message is received and validated in service component, error is detected in service component.
You can validate if the user message (XML document) and format definition (XML schema) which is specified in service adapter are according to the specifications of XML schema.
Set the telegram-validation property in HCSC server runtime definition file for using the service adapter message validation function. For details about the HCSC server runtime definition file, see "HCSC server runtime definition file" in "Service Platform Reference Guide".
The following table shows the service adapters of the entire HCSC server, where message validation function will be valid. You cannot set the function for each service adapter. Also, the function will be effective for the request messages which invoke service components and for response messages.
Table 7-128 Table Service adapters in which message validation function is effective
| Adapter type | Direction | Data transformation definition pattern | Format definition to be validated | Message type | Effectiveness of validation function |
|---|---|---|---|---|---|
| SOAP adapter, SessionBean adapter, MDB (WS-R) adapter, MDB (DB queue) adapter |
Request | No data transformation | Service component message | XML | Y |
| Binary | N #1 | ||||
| Standard - service components Data transformation | Standard message | XML | Y | ||
| Binary | N #1 | ||||
| Service component message | XML | Y | |||
| Binary | N #1 | ||||
| Response | No data transformation | Service component message | XML | Y | |
| Binary | N #1 | ||||
| Service component - Standard data transformation | Standard message | XML | Y | ||
| Binary | N #1 | ||||
| Service component message | XML | Y | |||
| Binary | N #1 | ||||
| Fault | No data transformation | N | XML | N | |
| DB adapter | Request | No data transformation | Service component message | XML | N #2 |
| Standard - service components Data transformation | Standard message | XML | N | ||
| Binary | N | ||||
| Service component message | XML | N#2 | |||
| Response | No data transformation | Service component message | XML | N#2 | |
| Service component - Standard data transformation | Standard message | XML | N | ||
| Binary | N | ||||
| Service component message | XML | N#2 | |||
| TP1 adapter | Request | No data transformation | Service component message | Binary | N#1 |
| Standard - service components Data transformation | Standard message | XML | Y | ||
| Binary | N#1 | ||||
| Service component message | Binary | N#1 | |||
| Response | No data transformation | Service component message | Binary | N#1 | |
| Service component - Standard data transformation | Standard message | XML | Y | ||
| Binary | N#1 | ||||
| Service component message | Binary | N#1 | |||
| File adapter | Request | No data transformation | Service component message | XML | Y |
| Binary | N#1 | ||||
| Standard - service components Data transformation | Standard message | XML | Y | ||
| Binary | N#1 | ||||
| Service component message | XML | Y | |||
| Binary | N#1 | ||||
| Response | No data transformation | Service component message | XML | Y | |
| Binary | N#1 | ||||
| Service component - Standard data transformation | Standard message | XML | Y | ||
| Binary | N#1 | ||||
| Service component message | XML | Y | |||
| Binary | N#1 | ||||
| Object Access adapter | Request | No data transformation | Service component message | XML | Y |
| Standard - service components Data transformation | Standard message | XML | Y | ||
| Binary | N#1 | ||||
| Service component message | XML | Y | |||
| Response | No data transformation | Service component message | XML | Y | |
| Service component - Standard data transformation | Standard message | XML | Y | ||
| Binary | N#1 | ||||
| Service component message | XML | Y |
Based on the collected user message trace, you can check if the message is flowing as per the design, at the requester side and service side and you can also check the message at all points such as business process activity and data transformation.
For collecting user message trace, perform settings in the following properties of HCSC server runtime definition file:
For details about the HCSC server runtime definition file, see "HCSC server runtime definition file" in "Service Platform Reference Guide".
For details about user message trace, see "7.4.4 User message trace".
All Rights Reserved. Copyright (C) 2015, Hitachi, Ltd.