Siebel Object Interfaces Reference > Customizing Siebel Object Interfaces > Accessing a Siebel Object Interface >

Accessing the Web Client Automation Server


This topic describes how to access the Web Client Automation Server.

NOTE:  The Web Client Automation Server only works in high interactivity mode.

In order for the Web Client Automation Server to accept requests from an external ActiveX control, the external control must provide a Session Random Number (SRN). If the Web Client Automation Server recognizes the SRN, then it executes the request. If the Web Client Automation Server does not recognize the SRN, the request is ignored. The SRN is unique to a single browser session, so it cannot be used indefinitely: once the user initiates a logout sequence, the SRN is no longer valid.

Examples of Accessing the Web Client Automation Control

This topic lists multiple examples relating to accessing the Web Client Automation Control.

Example of Implementing SetSiebelToken on the External ActiveX Control

The following example includes the code you use to implement SetSiebelToken on the external ActiveX control:

NOTE:  This is part of the source for the external ActiveX control.

Private m_sSRN as String

Public Sub SetSiebelToken(sSRN as String)
 m_sSRN = sSRN
End Sub

Private Function GetSiebelToken() as String
 GetSiebelToken = m_sSRN
End Function

Example of Instantiating a New External ActiveX Control and Passing an SRN

The following example includes the code you use to instantiate a new external ActiveX control and pass an SRN:

NOTE:  This example uses Siebel browser script.

var MyObject = new ActiveXObject("My.Control");
MyObject.SetSiebelToken(theApplication().GetSRN());

Example of Connecting to an Instantiated ActiveX Control and Passing an SRN

The following example includes the code you use to connect an existing instantiated ActiveX control and pass an SRN.

NOTE:  This example uses Siebel browser script.

var MyObject = GetObject(, "My.Control");
MyObject.SetSiebelToken(theApplication().GetSRN());

Example of Accessing the Web Client Automation Control from the External ActiveX Control

Figure 5 includes the code you use to call the Siebel Web Client Automation Control from the external ActiveX control.

Figure 5. Code Used to Call Siebel Web Client Automation Control from the External ActiveX Control

Explanation of Callouts

The code includes the following callout:

  1. Sets an input PropertySet property to pass in the trusted SRN.

NOTE:  SRN does not need to be explicitly added as an input property on a business service. It is implicitly available.

Siebel Object Interfaces Reference Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Legal Notices.