<html>
<head>
<title>Example Metadata Operation</title>
<script language='javascript'>
function doMetaReset()
{
    var testData = "<request \n"
+"    xmlns='http://digir.net/schema/protocol/2003/1.0' \n"
+"    xmlns:xsd='http://www.w3.org/2001/XMLSchema' \n"
+"    xmlns:digir='http://digir.net/schema/protocol/2003/1.0'>\n"
+"  <header>\n"
+"    <version>1.0.0</version>\n"
+"    <sendTime>20030421T170441.431Z</sendTime>\n"
+"    <source>127.0.0.1</source>\n"
+"    <destination resource='test'>http://localhost/digir/DiGIR.php</destination>\n"
+"    <type>metadata</type>\n"
+"  </header>\n"
+"</request>\n";
    document.forms.metaReq.doc.value = testData;
}
</script>

</head>
<body onload='doMetaReset()'>
<h1>Example Metadata Operation</h1>
<p>This is a static metadata request to the local DiGIR service. You can edit
the text to change the actual request submitted.  Pressing Reset will reload 
the default inventory request operation.</p>
<p><b>Note</b> that a real request should set the sendTime, source, and 
destination elements correctly or the request may be rejected by a provider.</p>
<p><b>Note</b> The metadata operation is the default operation of a DiGIR 
service and so may be invoked without a formal request simply by calling the
URL of DiGIR.php.</p>
<form id='metaReq' action='../DiGIR.php' method='GET'>
<textarea name='doc' id='doc' rows='18' cols='80'>
</textarea><br />
<input type='submit' value='Submit Request' />&nbsp;
<input type='button' value='Reset' onclick='doMetaReset()' />
</form>
</body>
</html>