Cisco Cisco Customer Voice Portal Downloads Developer's Guide

Page of 79
C
HAPTER 
7:
 
S
TANDARD 
A
CTION 
E
LEMENTS
 
 
C
ISCO 
CVP V
OICE
XML 3.1
 
 
  
Programmer 
Guide 
 
 
Figure 7-1 
The elements in this XML document are: 
• 
status 
– Since the XML API accesses a process that exists in context separate from CVP 
VoiceXML Server, there is no automatic way for an error that occurs during the creation of a 
response to be caught and handled properly by the Server. This tag exists to simulate that 
process by containing either the word “success” or a text message describing the error. When 
anything but “success” is returned, the Server throws an exception using the content of 
<status>
 as the error message. This way, from the perspective of the Server and the 
application logs, the result will be the same no matter whether the Java API or the XML API 
is used. See the description for the 
<error>
 tag below as there is some overlap in 
functionality. 
• 
error 
– This tag reports to CVP VoiceXML Server that an error occurred while executing the 
standard action. The Server will then throw an exception whose message is contained in the 
<error>
 tag. This tag acts almost exactly like the 
<status>
 tag and was introduced later to 
allow for consistency across all components. An error listed in this tag takes precedence over 
an error message listed in the 
<status>
 tag. The 
<status>
 tag must still be used to indicate 
that the standard action element executed without error by containing the word “success”. 
 
 
Copyright 2001 - 2005 Audium Corporation.  All Rights Reserved. 10/05
 
43