10-100
Cisco CRS-1 Series Carrier Routing System XML API Guide
OL-4596-01
Chapter 10 Error Reporting in Cisco CRS-1 Series XML Responses
Types of Reported Errors
</Request>
Sample XML Response from the Cisco CRS-1 Series Router
<?xml version="1.0" encoding="UTF-8"?>
<Request MajorVersion="1" MinorVersion="0">
<Set xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ErrorCode="0x4368a400"
ErrorMsg="'XML Service Library' detected the 'warning'
condition 'An error was encountered in the XML beneath this operation
tag'">
<Configuration>
<BGP MajorVersion=”1” MinorVersion=”0”
<AS>
<Naming>
<AS>3</AS>
</Naming>
<Global ErrorCode="0x4368a400" ErrorMsg="'XMLMDA' detected the
'warning' condition '
The XML request does not conform to the schema. A child element of
the element on which this error appears is invalid. No such child
element name exists at this location in the schema. Please check
the request against the schema.'"/>
</AS>
</BGP>
</Configuration>
</Set>
</Request>
The following example also illustrates a schema error. In this case, the client application has requested
a <Set> operation specifying a value for the <GracefulRestartTime> object that is not within the range
of valid values for this item.
Note If a request does not conform to the XML schema, the CRS-1 Series router does not guarantee the
response other than that it will be graceful.
Sample XML Request Specifying an Invalid Object Value Range
<?xml version="1.0" encoding="UTF-8"?>
<Request MajorVersion="1" MinorVersion="0">
<Set>
<Configuration>
<BGP MajorVersion=”1” MinorVersion=”0”>
<AS>
<Naming>
<AS>3</AS>
</Naming>
<Global>
<GracefulRestartTime>6000</GracefulRestartTime>
</Global>
</AS>
</BGP>
</Configuration>
</Set>
</Request>
Sample XML Response from the Cisco CRS-1 Series Router
<?xml version="1.0" encoding="UTF-8"?>
<Request MajorVersion="1" MinorVersion="0">
<Set xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ErrorCode="0x4368a800"
ErrorMsg="'XML Service Library' detected the 'warning'