MACROMEDIA BREEZE-USING THE BREEZE XML WEB SERVICES Use Manual page 30

Using the breeze xml web services
Table of Contents

Advertisement

Request a list of Breeze users from the Breeze server by calling the
3.
The server returns a complete list of all principals, including principals that aren't users.
(For information about principals, see
The following code calls the
is included as an HTTP parameter.
<cfhttp url="#baseurl#api/xml?action=principal-list&accesskey=#accesskey#"
method="post">
<cfhttpparam type="Cookie" name="BREEZESESSION" value="#loginCookie#">
</cfhttp>
Note: This HTTP request uses the
specify an HTTP parameter in CFML is by using
remain the same as if you were using
Ensure that the action completed successfully by parsing the returned XML to ensure that the
4.
value of the
status
check the
status
If the status code is
5.
attribute set to
type
:
allUsers
<cfset xmlPrincipalList= XmlParse(cfhttp.FileContent)>
<cfset allUsers = XmlSearch(xmlPrincipalList, "//principal [@type='user']")>
Obtain a list of all the users listed in the directory service. The procedure for obtaining this list
6.
depends on the directory service.
Compare the values contained in the
7.
from the directory service, using a list-comparison algorithm of your choice. Determine which
users are in the directory service but not in Breeze; these are new users to be added to Breeze.
Also determine which users are in Breeze but not in the directory service; these users should be
removed from Breeze. Finally, determine which users are in both Breeze and the directory
service, but have different names in the two places; these users' names should be changed
in Breeze.
30
Chapter 3: Common Tasks
"About principals, SCOs, and IDs" on page
principal-list
"post"
"get"
tag's
attribute is set to
code
tag in the returned XML after every action.
, search the returned list of principals to find all principals that have a
"ok"
. The following example places a list of all Breeze users into the array
user
login
action. The cookie value from the previous step
method rather than
"get"
. The URL and the query parameters
"post"
, however.
. If your code must be robust, you should
"ok"
tags for the Breeze users with the e-mail addresses
action.
principal-list
16.)
because the only way to

Advertisement

Table of Contents
loading

This manual is also suitable for:

Breeze

Table of Contents