Siebel Search Administration Guide > Siebel Search Integration API Reference >

InvokeMethod


InvokeMethod is used for Search Open API method calls between the Siebel application and the third-party adapter.

Syntax

int InvokeMethod (const wchar_t * pMethodName, const wchar_t * inputArgs, wchar_t * & outputArgs)

Arguments
Argument
Description
Mandatory

pMethodName

A string indicating the name of the Search API method to be called by InvokeMethod. pMethodName can take any of the following values:

  • Search
  • Index
  • RefreshIndex
  • IncrementalIndex
  • ValidateEngineSetup

Yes

inputArgs

An XML string containing input for the specified method.

Yes

outputArgs

An XML string containing output from the specified method.

Yes

Usage

Use the InvokeMethod function to pass calls from the adapter to the appropriate Search method. The Siebel application communicates with the adapter only through InvokeMethod, and all Siebel Search operations are passed as arguments to InvokeMethod. This is the only Search API method that is called directly by the Siebel application.

Invoked From

Business service

Return Value

Zero (0) is returned on success. An error code is returned on failure.

Example

This example shows how InvokeMethod is invoked.

var1 = LoadLibrary(AdapterDLL);

typedef ErrCode (*ADPT_METHOD_PTR)(const SSbyte*, const SSbyte*, SSbyte *&);

ADPT_METHOD_PTR pInvokeMethod;

pInvokeMethod = (ADPT_METHOD_PTR)GetProcAddress(var1, SStext("InvokeMethod"));

var2 = (*pInvokeMethod)(pMethodName, InputArgs, OutputArgs);

Siebel Search Administration Guide Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.