Contained WithinFind More DocumentationFeatured Support Resources | Scarica il manuale in formato PDF (1165 KB)
Chapter 1 Web Calendar Access Protocol OverviewThis chapter describes the Web Calendar Access Protocol (WCAP), which is a high level command-based protocol used to communicate with Calendar Server. This chapter has the following sections: Introduction to WCAP for Calendar ServerCalendar data is stored in a proprietary format in the various calendar databases. You retrieve calendar data using WCAP commands with the fmt-out parameter set to either text/calendar or text/xml. Calendar Server communicates with Communications Express using the text/xml format. WCAP is a command based system consisting of client requests and server responses for transmitting calendaring data. WCAP returns calendaring data using the HTTP protocol. In most cases, Calendar Server receives data through URL-encoded arguments. WCAP commands consist of four general categories of usage:
Calendar Server WCAP Command OverviewThe following is a list of commands supported in WCAP. For a detailed description of each command, see Chapter 3, Calendar Server WCAP Command Reference Table 1–1 WCAP Command Overview
Session IdentifiersFor many WCAP commands, you must specify the session identifier (id) that is returned by the login command. The session identifier ensures that data is accessible only to authenticated users with the required level of privilege or ownership. When logging into the system, a user provides authentication of identity. The default authentication mechanism uses plain-text passwords and user names. Calendar Server generates the session identifier only when authentication is successful. The identifier then serves as proof of authentication in subsequent calendaring operations. For more information about how to configure authentication, see the Calendar Server Administration Guide: Sun Java System Calendar Server 6.3 Administration Guide. Hosted (Virtual) Domain ModeIn earlier versions of Calendar Server, using domains was optional. Now all installations are configured with at least one domain and are considered to be in hosted domain mode. Therefore, all WCAP commands you issue must have fully qualified user ID's (uid) and calendar ID's (calid) to properly identify the domain, for example jdoe@example.com. Command FormatsPlug-in architecture allows Calendar Server to support multiple command formats. Depending on your needs, you can use a variety of data formats for both clients and server. WCAP uses HTTP, and follows the standards defined by the WC3 URL specifications. WCAP in Calendar Server consists calendar data formatted as XML or iCalendar, communicated as HTML documents over HTTP on both the client and server side. Refer to the Calendar Server Release Notes for recommended browser versions for client interfaces. Note – The number of characters that can be passed in for each parameter is limited to 1024 characters. Client Request FormatsClients submit command requests to the Calendar Server in either Universal Resource Identifier (URI) data format, or with one of three HTML forms.
URI FormatUse the following format to submit a URI request: http://webcalendarserver/COMMAND?PARAM=VAL&PARAM=VAL... Multiple items are delimited by semicolons. If a string contains a semicolon character, replace the semicolon with its quoted-printable equivalent, %3B. For example, to represent the string “gh;i” in a list of ID's, use the following:
See also Chapter 2, Calendar Server WCAP Common Topics HTML FormSubmit a form with method=[GET|POST] and action=command (where command is the command to execute). Parameters need to be formatted as specified in the encoding. Note – The maximum length for WCAP parameters is 1024 characters. Client Side Event NotificationAll client side JavaScript code in the parent frame of the response page is required to implement a method called CalcommandCallback(), where command is the name of the command requested. This callback is invoked when the HTML response has completed loading. When used with HTTP GET, commands are for data retrieval. When used with HTTP POST, commands are for data modifications, including creation or deletion. Server Response FormatsCalendar Server responds to client requests by serving HTML containing either iCalendar or XML objects. You can configure a response format preference for a server, a user, or an individual request. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||