Book Image

Domino 7 Application Development

Book Image

Domino 7 Application Development

Overview of this book

Written by Lotus insiders, the book provides a practical guide to developing applications making use of the important features and enhancements introduced in Notes/Domino 7. These experienced experts use their own experiences to map out the benefits you could gain, and the dangers you may face, as you develop Domino applications in your business. Written by specific experts, edited and overseen by Lotus content generator Dick McCarrick, this book is the definitive guide to developing Domino 7 applications. TECHNOLOGY Domino is an application server that can be used as a standalone web server or as the server component of IBM's Lotus Domino product which provides a powerful collaborative platform for development of customized business applications. It also provides enterprise-grade email, messaging, and scheduling capabilities.
Table of Contents (18 chapters)
Domino 7 Application Development
Credits
Foreword
About the Authors
About the Reviewer
Preface
Free Chapter
1
A Short History of Notes and Domino

Adding Exception Handling to the Web Service


Currently, our CompanyInfo web‑service implementation returns a string message for cases where a ticker symbol that is not in the database is entered. It is entirely possible that we might want to generate an exception under such circumstances. LotusScript does not support exception handling, but does support error handling. Unfortunately, this is not what is needed for passing an exception back to a web‑service client. To address this situation, we use the new FAULT object. The following update to our implementation identifies a means to pass an exception back to the web‑service client:

%INCLUDE "lsxsd.lss"
Dim session As NotesSession
Class CompanyInfo
Sub NEW
Set session = New NotesSession
End Sub
Function GetCompanyName(strSymbol As String, FAULT As WS_FAULT)
As String
Dim dbCurrent As NotesDatabase
Dim viewCompanyProfileLookup As NotesView
Dim docCompanyProfile As NotesDocument
Set dbCurrent = session.CurrentDatabase
Set viewCompanyProfileLookup...