Cisco Systems 78-11424-03 Network Router User Manual


 
2-45
Cisco Content Services Switch Basic Configuration Guide
78-11424-03
Chapter 2 Configuring User Profiles and CSS Parameters
Configuring Content API
Controlling Access to the CSS HTTP Server
To control access to the HTTP server running on the CSS, use the restrict xml
and no restrict xml commands. Clients can send XML documents to this server
to configure the CSS. The options for this global configuration mode command
are:
no restrict xml - Allow client access to the HTTP server on the CSS.
restrict xml - Deny client access to the HTTP server on the CSS.
Note The web-mgmt state enable command (for CSS software version
3.x) performs the same function as the (config) no restrict xml
command (for CSS software version 4.x) and the web-mgmt state
disable command performs the same function as the (config)
restrict xml command. When you use the web-mgmt state enable
command, it does not appear in the configuration file. Instead, the
(config) no restrict xml command appears in the configuration file.
Parsing the XML Code
After you complete the XML file, parse the code to ensure that it is syntactically
correct. The easiest way to parse XML code is to open the XML file directly from
Microsoft® Internet Explorer. Syntax errors are flagged automatically when the
file is loaded. If an error occurs, review your XML code and correct all syntax
errors.
Publishing the XML Code to the CSS
The completed XML file is remotely published (uploaded) to the HTTP server in
the CSS from the external network management workstation by using a HTTP
PUT method. The HTTP PUT method uses the IP address of the CSS as the
destination URL where you want to publish the XML file.
Note When XML is enabled, the CSS listens for XML connections on
port 80.