Siebel Adapter 6.0 SP3 | webMethods Siebel Adapter Documentation | webMethods Siebel Adapter Installation and User’s Documentation | Siebel-To-webMethods Communication | Siebel Visual Basic Scripts
 
Siebel Visual Basic Scripts
As described in Siebel Visual Basic Scripts, you can write a Siebel Visual Basic script to call adapter services and pass values to them. For example, you might create a Siebel procedure that notifies an Integration Server client when a new sales contact is created.
The Siebel Adapter provides a Siebel VB script that you can use as a template for writing your VB scripts.
*To write a Siebel VB script
1. Determine where you want to place the VB script. See the Tools Guides on the Siebel Bookshelf for information about where to attach scripts.
2. Using Siebel Tools, edit the Siebel application object to which you want to attach the Siebel VB script.
3. Copy the SiebelToISTemplate.txt template to the Siebel VB script and modify the template as needed. The template, which includes in-line comments indicating the areas you should modify, is located in:
Integration Server_directory \packages\WmSiebelAdapter\templates\SiebelToISTemplate.txt
When writing a Siebel VB script, use the following basic format:
a. Retrieve information from the Siebel business component record.
b. Create a webMethods Values object for service input parameters.
c. Use the information retrieved from the Siebel business component to populate the input parameters Values object.
d. Establish a connection to Integration Server.
e. Invoke an adapter service on the connection.
f. Check the Values object returned by the adapter service.
g. End the connection to Integration Server.