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

Using the breeze xml web services
Table of Contents

Advertisement

If you want to provide links to content items in the form of absolute URLs, determine the
4.
domain name of the folder:
<cfset domainElement= XmlSearch(xml,
"//sco[@tree-id='#myTreeId#']/domain-name")>
<cfset domainName= domainElement[1].XmlText>
Call the
5.
sco-contents
The following action provides a list of the contents of the specified folder:
<cfhttp url="#baseurl#api/xml?
action=sco-contents&accesskey=#accesskey#
&sco-id=#contentSco#" method="post">
<cfhttpparam type="Cookie" name="BREEZESESSION" value="#loginCookie#">
</cfhttp>
Parse the returned XML and display relevant information to the user:
6.
<cfset response= cfhttp.FileContent >
<cfset contentXml= XmlParse(response)>
<cfset contents= XmlSearch(contentXml, "//sco")>
<cfset contentCount= ArrayLen(contents)>
<cfoutput>
<table>
<tr>
<th>SCO ID</th>
<th>Name</th>
<th>Type</th>
</tr>
<cfloop index="i" from="1" to="#contentCount#">
<cfset item=contents[#i#]>
<tr>
<td>#item.XmlAttributes["sco-id"]#</td>
<td>#item.name.XmlText#</td>
<td>#item.XmlAttributes["type"]#</td>
</tr>
</cfloop>
</table>
</cfoutput>
To provide links to launch content items, call the
7.
the item's full absolute URL by appending the returned
acquired. This results in a URL such as http://breeze.example.com/p12345678/.
For more information about launching content, see
on page
20.
34
Chapter 3: Common Tasks
action, using the folder's SCO ID.
action for each item, and determine
sco-info
tag to the domain name you
url-path
"About security and launching content"

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the BREEZE-USING THE BREEZE XML WEB SERVICES and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Breeze

Table of Contents