Siebel Smart Answer Connector Guide > Sample Files for Use with Siebel Smart Answer Connector > >

Sample C++ Input and Output Files for Use with Siebel Smart Answer Connector


This topic provides the following input and output files as examples of how the business service methods are called when using Siebel Smart Answer Connector and an adapter that uses C++:

Categorize Output File

The following sample code is an example of the expected output of the Categorize method. This XML-formatted message flows from a third-party adapter to a Siebel application (version 8.1 or later).

<?xml version ="1.0" encoding ="UTF-16"?>

<?XsearchAdapter-XML EscapeNames="true"?>

<OutputBlock Character_spcSet="utf16" Language="English">

<Categories>

<category name="Ramani Iyer" kscore="95"/>

<category name="Bhavin Gosrani" kscore="96"/>

</Categories>

</OutputBlock>

Identify Language Input File

The following sample code is an example of the expected input for the Identify Language method. This XML-formatted message flows from a Siebel application (version 8.1 or later) to a third-party adapter.

NOTE:  This message might or might not identify the internal Document Type Definition (DTD).

<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (c) 2009, Oracle Corporation, Inc., All rights reserved. -->
<!-- -->
<!-- File : IdLanguageInput.xml -->
<!-- Revision : 1.0 -->
<!-- Date : 09 Apr 2009 -->
<!-- Creator : Tom Jones -->
<!-- -->
<!-- Description: Sample input for NLP engine adapter based on SAIO -->
<!-- format -->
<!-- -->
<!-- Change Log: -->
<!-- author Date Comment -->
<!-- ========== =========== =========================================== -->
<!-- -->

<!DOCTYPE saio [

<!ELEMENT method (input*, output*)>

<!-- name : Name of the property -->

<!ATTLIST method

name CDATA #REQUIRED

action CDATA #REQUIRED>

<!ELEMENT input (category*, property*)>

<!ELEMENT output (category*, property*)>

<!ATTLIST input

category-count CDATA #REQUIRED

property-count CDATA #REQUIRED >

<!ATTLIST output

category-count CDATA #REQUIRED

property-count CDATA #REQUIRED>

<!-- name : Name of the category -->
<!-- kscore : Knowledge Score of the category -->

<!ATTLIST category

name CDATA #REQUIRED

kscore CDATA #REQUIRED >

<!-- name : Name of the property -->
<!-- value : Value of the property -->

<!ATTLIST property

name CDATA #REQUIRED

value CDATA #REQUIRED >

]>

<method name="IdentifyLanguage">

<input category-count="0" property-count="2">

<property name="Text" value="testing arun"/>

<property name="Channel" value="eMail"/>

</input>

</method>

Identify Language Output File

The following sample code is an example of the expected output for an Identify Language method. This XML-formatted message flows from a third-party adapter to a Siebel application (version 8.1 or later).

<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (c) 2009, Oracle Corporation, Inc., All rights reserved. -->
<!-- -->
<!-- File : IdLanguageInput.xml -->
<!-- Revision : 1.0 -->
<!-- Date : 09 Apr 2009 -->
<!-- Creator : Tom Jones -->
<!-- -->
<!-- Description: Sample input for NLP engine adapter based on SAIO -->
<!-- format -->
<!-- -->
<!-- Change Log: -->
<!-- author Date Comment -->
<!-- ========== =========== =========================================== -->
<!-- -->

<!DOCTYPE saio [

<!ELEMENT method (input*, output*)>

<!-- name : Name of the property -->

<!ATTLIST method

name CDATA #REQUIRED

action CDATA #REQUIRED>

<!ELEMENT input (category*, property*)>

<!ELEMENT output (category*, property*)>

<!ATTLIST input

category-count CDATA #REQUIRED

property-count CDATA #REQUIRED >

<!ATTLIST output

category-count CDATA #REQUIRED

property-count CDATA #REQUIRED>

<!-- name : Name of the category -->
<!-- kscore : Knowledge Score of the category -->

<!ATTLIST category

name CDATA #REQUIRED

kscore CDATA #REQUIRED >

<!-- name : Name of the property -->
<!-- value : Value of the property -->

<!ATTLIST property

name CDATA #REQUIRED

value CDATA #REQUIRED >

]>

<method name="IdentifyLanguage">

<output category-count="0" property-count="6">

<property name="Channel" value="eMail"/>

<property name="Text" value="testing arun"/>

<property name="Language Name" value="English US"/>

<property name="Language Code" value="ENU"/>

<property name="Msg Character Set" value="utf16"/>

<property name="Status" value="Success"/>

</output>

</method>

Siebel Smart Answer Connector Guide Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.