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

Expanding the Web Service to Include Complex Data Types


We will now proceed to expand the web service by adding functions to return more data about a company. To do so, we will add a new document type called Telephone Number to store telephone numbers related to specific companies. This will be a one-to-many relationship, where each company will be joined to many telephone numbers using the symbol field. Using the telephone number, we will demonstrate how to use web services to return complex data types such as arrays.

The Telephone Number entity used for this example defines two fields:

In order to generate an array of strings to be returned by the CompanyInfo web service, we will load the following telephone‑number data into the Company database:

Here is the updated web‑service code to return a string array of telephone numbers, as well as a Long value indicating a company's Short Interest. A description of the changes follows the code listing:

%INCLUDE "lsxsd.lss"
Dim session As NotesSession...