Platform SDK: CDO 1.2.1

Testing the BankPost Agent

To test the the BankPost agent

  1. Log on to Microsoft Outlook as Bank Teller.
  2. To your own Inbox, post a message whose subject field contains the number "1" and whose message body contains the number "20".
  3. View the Windows NT Event Log or use the Microsoft Transaction Server administrator program to verify success or failure.
  4. To see the total number of dollars in the Sample Bank, run it using its Microsoft® Visual Basic® interface.

Notes  The BankPost script calls the Microsoft® Visual C++® version of the Bank.Account object, but it could just as easily use the Visual Basic or Java version of the object. Also, this sample script has very little error checking. A more robust application would perform extensive error checking on numbers such as the account and amount data submitted.

This script uses the Sample Bank from Microsoft SQL Server version 6.5; other versions of Microsoft SQL Server may have different arguments for the Post method of the IDispatch object.