Descripción
La tarea HTTP del servidor Domino es extremadamente versátil. Además de traducir HTML, también ejecuta varios tipos de elementos de diseño codificados en Java o LotusScript:
Este curso se centra en el desarrollo y seguridad de esos elementos de diseño. Se aprenderá también a depurar y ejecutar técnicas de gestión de errores en tiempo de ejecución.
Este curso incluye también los requerimientos de Servicios web de cliente y enseña cómo se puede codificar un Servicio Web sencillo haciendo uso de un toolkit SOAP.
Objetivos
En este curso, se aprende cómo:
Audiencia
Este curso está diseñado para programadores de Notes conocedores de Domino Designer 8. Asume que el alumno tiene:
Aunque no es necesario ser un experto, deben disponerse conocimientos de LotusScript y de los objetos de Notes a nivel de trabajo.
Duración
La duración del curso es de 2 jornadas
Esquema
Topic 1: Introduction
Agents
Web Services
What follows
Exercise: Create demonstration database
Topic 2: WebQueryOpen Event Agents
Form computation sequence
Step 1: Create the Agent and set its properties
Step 2: Code the Agent
Step 3: Call the Agent from the Forms WebQueryOpen event
Agent authority
Step 4: Set the Agent properties Security tab options
Who can run the Agent
Database ACL
Exercise: Set default email address in Review form
Agents and document access Fields
Prevent Agents from being run out of context
Exercise: Prevent Agents from being run out of context
Topic 3: WebQuerySave Event Agents
Form computation sequence
$$Return or WebQuerySave event?
Create WebQuerySave Agent
Print statements
When Print statements are ignored
Stop document from being saved
Exercise: Part Form validation
Topic 4: Web Agents
Create a Web Agent
Run Web Agents
Agent context versus document context
Agent ouput
Pass argument(s) to a Web Agent
Parse URL arguments
@Command([RunAgent])
Exercise: Browser-based reporting
Example: I forgot my password Web Agent
Example: Download view in Excel Web Agent
Topic 5: Web Agent Error Handling
WebQueryOpen event Agents
WebQueryClose event Agents and Web Agents
Runtime error handling
Web server response codes
Common 4xx and 5xx response codes
Agent-specific browser errors
HTTP server performance and Agents run by browsers
Topic 6: Web Services Concepts
Web Services basics
Definitions
Domino 8 and Web Services
What Web Services are publicly available?
Testing a Web Service
Exercise: Web Services Explorer
SOAP programming models and formats
Exercise: Multiple, detailed stock quotes
Web Services versus Web Agents
Web Services clients
Topic 7: Web Service Properties
Domino-based Web Service from Web Services Explorer
Create Web Service design element
Import WSDL file
Web Service properties and the WSDL
Show WSDL
Basics tab
Advanced tab
Security tab
Alternative security model
Get Domino Web Service information from a browser
Domino-based Web Service from browser
Topic 8: Web Service Programmers Pane
Code the operations
Web Service context
Resulting WSDL
WSDL from the client perspective
Greeting Web Service code
Simple data types for request and response parameters
Explicit data type conversion
Multiple request parameters
Complex data types
Web Service accepts an array as parameter
Web Service responds with array
Topic 9: Consume Web Services
PocketSOAP Examples page
VBScript
PocketSOAP
Greetings from Domino button
Exercise: Understand lookup examples
Send array to Web Service
Receive array from Web Service
Class objects
Exercise: Save changes to a Part
Notes, LotusScript, and PocketSOAP
Notes/Domino native Web Service consumers
Topic 10: Web Service Error Handling
SOAP faults
SOAP Fault Example page
Web Service-side error handling
Client-side error handling of VBScript errors
Web Service system-generated SOAP faults
Web Service developer-defined SOAP faults
Client-side error handling of a SOAP fault
Topic 11: Remote Debugging, Logging, and Profiling
Remote LotusScript Debugger
Java debugger support
Domino Server Log
Private Agent log
Agent Log database
Agent performance and Agent Profiling
DDM Application Probes