Specifications
1-21
Cisco CRS-1 Series Carrier Routing System XML API Guide
OL-4596-02
Chapter 1 Cisco CRS-1 Series XML API Overview
Cisco CRS-1 Series XML API Tags
XML Request Batching
The Cisco CRS-1 Series XML interface supports the combining of several requests or operations into a
single request. When multiple operations are specified in a single request, the response contains the same
operation tags and in the same order as they appeared in the request.
Batched requests are performed “best effort.” For example, if there are operations 1 through 3 in the
request and operation 2 fails, operation 3 will be attempted.
Before combining multiple operations inside one <Get> tag, any operations that request multiple items
of data must be sent in a separate document. For more information, see Chapter 5, “Cisco CRS-1 Series
XML and Native Data Access Techniques,” “XML Request with Combined Object Class Hierarchies”
section on page 5-67.
The following example shows a simple request containing six different operations:
Sample XML Client Batched Requests
<?xml version="1.0" encoding="UTF-8"?>
<Request MajorVersion="1" MinorVersion="0">
<Lock/>
<Get>
<Configuration>
.
.
.
Get operation content goes here
.
.
.
</Configuration>
</Get>
<Set>
<Configuration>
.
.
.
Set operation content goes here
.
.
.
</Configuration>
</Set>
<Commit/>
<Get>
<Operational>
.
.
.
Get operation content goes here
.
.
.
</Operational>
</Get>
<Unlock/>
</Request>
Sample XML Response from the Cisco CRS-1 Series Router
<?xml version="1.0" encoding="UTF-8"?>
<Response MajorVersion="1" MinorVersion="0">
<Lock/>