Rockwell Automation 1768-EWEB EtherNet/IP Web Server Module User Manual User Manual

Page 107

Advertising
background image

Publication ENET-UM527E-EN-P - October 2006

Create Custom Web Pages 107

This example also requires a custom access level.

This method (updating the data view) is geared toward programmatic
updates. When an external application that loads a data view wants to
change values in that data view, the application can post a modified
version of the data view to a special URL on the web server module:

1. Load the XML data view from its URL (for example,

“/user/Web/system/dataviews/myview.xml”).

2. Systematically modify the values of any tags.

3. Remove any tags that were not modified from the XML

document.

4. Either post the XML file as a file attachment or include its

contents in a parameter named ’xml’ posted to the URL of the
data view iteself.

5. Include a redirect parameter to direct a user to a page showing

an up-to-date copy of the data view being modified.

Consider:

• Only tags marked as ’Write’ or ’Administrator’ can be changed.

All changes to the values of ’Read’ tags are ignored.

• When the program posts an update to the data view, it must

present the same user authentication that was necessary to
initially load the data view.

• Any errors in the XML, whether ’valid’ (in XML) manipulations of

the original document or malformed XML content, return an
HTTP error to the client program.

Advertising
This manual is related to the following products: