Transports and Interfaces: Siebel Enterprise Application Integration > Transcode Service Business Service > Transcode Service Business Service Examples >
Using the Validate Method
The following examples demonstrate the use of the Validate method of the Transcode Service business service:
XML Hierarchy Example
In this workflow example, a file encoded in codepage 932 (Japanese) is read into an XML hierarchy, then validated for conversion into codepage 1252 (Western European). To create the validation workflow
- Create a workflow as follows:
NOTE: For details on the Business Process Designer, see Siebel Business Process Framework: Workflow Guide.
- Define the following process properties:
|
|
|
Error Code |
String |
In/Out |
Error Message |
String |
In/Out |
Siebel Operation Object Id |
String |
In/Out |
XMLHier |
Hierarchy |
In/Out |
- Set up the first business service step to use the EAI XML Read from File business service with the ReadXMLHier method and the following input and output arguments:
|
|
|
FileName |
Literal |
c:\JPN_JIS.xml |
|
|
|
XMLHier |
Output Argument |
XMLHierarchy |
- Set up the second business service step to use the Transcode Service business service with the Validate method and the following input arguments:
|
|
|
|
SourceEncoding |
Literal |
CP932 |
Not applicable |
TargetEncoding |
Literal |
CP1252 |
Not applicable |
ValidationMode |
Literal |
Not applicable |
Not applicable |
XMLHierarchy |
Process Property |
Not applicable |
XMLHier |
Siebel Message Example
In this workflow example, an account record is read from an integration object by the EAI Siebel Adapter as a Siebel Message, then validated for conversion from UTF-8 (Unicode) to codepage 1252 (Western European). To create the validation workflow
- Create a workflow as follows:
NOTE: For details on the Business Process Designer, see Siebel Business Process Framework: Workflow Guide.
- Define the following process properties:
|
|
|
Error Code |
String |
In/Out |
Error Message |
String |
In/Out |
Object Id |
String |
In/Out |
Process Instance Id |
String |
In/Out |
Siebel Operation Object Id |
String |
In/Out |
SiebelMsg |
Hierarchy |
In/Out |
- Set up the first business service step to use the EAI Siebel Adapter business service with the Query method and the following input and output arguments:
|
|
|
|
OutputIntObjectName |
Literal |
Sample Account |
Not applicable |
PrimaryRowId |
Process Property |
Row ID of the account record |
Object Id |
|
|
|
SiebelMsg |
Output Argument |
SiebelMessage |
- Set up the second business service step to use the Transcode Service business service with the Validate method and the following input arguments:
|
|
|
|
SourceEncoding |
Literal |
UTF-8 |
Not applicable |
TargetEncoding |
Literal |
CP1252 |
Not applicable |
ValidationMode |
Literal |
Not applicable |
Not applicable |
SiebelMessage |
Process Property |
Not applicable |
SiebelMsg |
|