Transports and Interfaces: Siebel Enterprise Application Integration > Transcode Service Business Service > Transcode Service Business Service Methods >

Validate Method


To avoid problems associated with relying on third-party applications to convert data, you can use the Validate method of the Transcode Service business service. The Validate method confirms the input property set hierarchy or the value of the input property set. You can use this method to check that a character is valid within a particular character set before performing the conversion. You can choose not to send the data to the external application if validation fails.

If validation fails, the Transcode Service business returns a client-side error code (Error Code). The log file contains detailed information about what went wrong, including the failure type, first position in the input, and where conversion failed.

The Validate method has the method arguments shown in Table 31.

Table 31. Validate Method Arguments
Method Argument
Required
Description

ValidationMode

No

Can be Value or left blank.

If the mode is Value, then only <Value> is validated. Otherwise, the entire property set hierarchy is validated.

SourceEncoding

No

Encoding from which data will be converted.

Required when ValidationMode is set to Value and the input value contains binary data. Conversion from binary data in SourceEncoding to binary data in TargetEncoding is implied.

TargetEncoding

Yes

Encoding to which data will be converted.

<Value>

No

If <Value> is used (ValidationMode is set to Value), then only it is validated. Otherwise, the entire property set hierarchy is validated.

SiebelMessage

No

If the validation is for a hierarchy of type Siebel Message, for example, the output of the EAI Siebel Adapter, this argument refers to the property set.

NOTE:  This argument is not shown in Siebel Tools.

XMLHierarchy

No

If the validation is for an XML hierarchy, for example, the output of the ReadXMLHier method of the EAI XML Read from File business service method, this argument refers to the property set.

NOTE:  This argument is not shown in Siebel Tools.

Transports and Interfaces: Siebel Enterprise Application Integration Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Legal Notices.