MKCOL /public/appII/ HTTP/1.1
HOST: yws
 
================================================================== 

MKCOL /public/appII/resources/ HTTP/1.1
HOST: yws

================================================================== 

PUT /public/appII/resources/form.asp HTTP/1.1
HOST: yws
Translate: f

<%@ Language=JavaScript %>
<%
  var oForm = Server.CreateObject("WSS.Form")

  if (Request.ServerVariables("REQUEST_METHOD") == "POST")
  {
    if (oForm.IsNew)
      oForm.Fields("Status").Value = "NotApproved"

    oForm.Update()
    Response.Redirect("resources/closewindow.htm")
  }

  if (Request.ServerVariables("REQUEST_METHOD") == "GET")
  {
    if (oForm.IsNew)
      oForm.Elements("ItemInfo").Visible = false
  }

  oForm.Render()
%>

<html><head>
<title>appII Page</title>
</head><body>

<form class="form" method="POST" actionspec="%DataUrl%">
  <span id="ItemInfo">
    Created:       <span class="field" name="DAV:creationdate"></span> <br>
    Last Modified: <span class="field" name="DAV:getlastmodified"></span> <br>
  </span>
  <p>
  Subject: <input type="text" class="field" name="urn:schemas:httpmail:subject">
  <p>

  Status: <select class="field" name="Status">
            <option value="NotApproved" selected>Not Approved
            <option value="Approved">Approved
            <option value="InProgress">In Progress
            <option value="Completed">Completed
          </select>
          <br>
  Description:<br>
  <textarea class="field" name="Description" rows="4" cols="30">
  </textarea>

  <p>
  <input type="submit">
  <input type="hidden" name="http://schemas.microsoft.com/exchange/nosave/hintforurl" value="urn:schemas:httpmail:subject">
  <input type="hidden" name="DAV:contentclass" value="SampleItem">
</form>

================================================================== 

PUT /public/appII/resources/closewindow.htm HTTP/1.1
HOST: yws
Content-type: text/html

<html><head>
<script>
window.close()
</script>
</head></html>

================================================================== 

PROPPATCH /public/appII/ HTTP/1.1
HOST: yws
Content-type: text/xml

<?xml version="1.0"?>
<g:propertyupdate xmlns:g="DAV:" xmlns:w="urn:schemas-microsoft-com:exch-data:">
   <g:set>
      <g:prop>
         <w:schema-collection-ref>/public/appII/resources/</w:schema-collection-ref>
       </g:prop>
   </g:set>
</g:propertyupdate>

================================================================== 

PROPPATCH /public/appII/resources/newform.freg HTTP/1.1
HOST: yws
Content-type: text/xml

<?xml version="1.0"?>
<g:propertyupdate xmlns:g="DAV:" xmlns:form="urn:schemas-microsoft-com:office:forms">
   <g:set>
      <g:prop>
         <form:request>GET</form:request>
         <form:cmd>newpost</form:cmd>
         <form:binding>server</form:binding>
         <form:contentclass>urn:content-classes:folder</form:contentclass>
         <form:executeurl>form.asp</form:executeurl>
         <form:formurl>form.asp</form:formurl>
         <form:executeparameters>CreateNew</form:executeparameters>
         <g:contentclass>urn:schemas-microsoft-com:office:forms#registration</g:contentclass>
      </g:prop>
   </g:set>
</g:propertyupdate>
 
================================================================== 

PROPPATCH /public/appII/resources/createitem.freg HTTP/1.1
HOST: yws
Content-type: text/xml

<?xml version="1.0"?>
<g:propertyupdate xmlns:g="DAV:" xmlns:form="urn:schemas-microsoft-com:office:forms">
   <g:set>
      <g:prop>
         <form:request>POST</form:request>
         <form:binding>server</form:binding>
         <form:contentclass>urn:content-classes:folder</form:contentclass>
         <form:executeurl>form.asp</form:executeurl>
         <form:formurl>form.asp</form:formurl>
         <form:executeparameters>CreateNew</form:executeparameters>
         <g:contentclass>urn:schemas-microsoft-com:office:forms#registration</g:contentclass>
      </g:prop>
   </g:set>
</g:propertyupdate>

================================================================== 

PROPPATCH /public/appII/resources/openitem.freg HTTP/1.1
HOST: yws
Content-type: text/xml

<?xml version="1.0"?>
<g:propertyupdate xmlns:g="DAV:" xmlns:form="urn:schemas-microsoft-com:office:forms">
   <g:set>
      <g:prop>
         <form:request>GET</form:request>
         <form:binding>server</form:binding>
         <form:contentclass>SampleItem</form:contentclass>
         <form:executeurl>form.asp</form:executeurl>
         <form:formurl>form.asp</form:formurl>
         <g:contentclass>urn:schemas-microsoft-com:office:forms#registration</g:contentclass>
      </g:prop>
   </g:set>
</g:propertyupdate>

================================================================== 

PROPPATCH /public/appII/resources/updateitem.freg HTTP/1.1
HOST: yws
Content-type: text/xml

<?xml version="1.0"?>
<g:propertyupdate xmlns:g="DAV:" xmlns:form="urn:schemas-microsoft-com:office:forms">
   <g:set>
      <g:prop>
         <form:request>POST</form:request>
         <form:binding>server</form:binding>
         <form:contentclass>SampleItem</form:contentclass>
         <form:executeurl>form.asp</form:executeurl>
         <form:formurl>form.asp</form:formurl>
         <g:contentclass>urn:schemas-microsoft-com:office:forms#registration</g:contentclass>
      </g:prop>
   </g:set>
</g:propertyupdate>
