OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

ws-calendar message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Schemas - yet again


Attached is the latest try at the schemas - it seems the best approach 
with duration is to revert to a constrained string. Neither icalendar 
duration nor XML durations cover all the desired intervals.

As a bonus I include an example of intervals- the values aren't too 
good. However, the first includes a tolerance property to exercise the 
redefined duration.


-- 

Mike Douglass                           douglm@rpi.edu
Senior Systems Programmer
Communication&  Collaboration Technologies      518 276 6780(voice) 2809
(fax)
Rensselaer Polytechnic Institute 110 8th Street, Troy, NY 12180

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";>
  <SOAP-ENV:Header/>
  <SOAP-ENV:Body>
    <ns3:addItem xmlns:ns2="urn:ietf:params:xml:ns:icalendar-2.0" xmlns:ns3="http://docs.oasis-open.org/ns/wscal/calws-soap"; xmlns:ns4="urn:ietf:params:xml:ns:caldav" xmlns:ns5="http://docs.oasis-open.org/ns/xri/xrd-1.0";>
      <ns3:href>/user/douglm/calendar</ns3:href>
      <ns2:icalendar>
        <ns2:vcalendar>
          <ns2:components>
            <ns2:interval>
              <ns2:properties>
                <ns2:uid>
                  <ns2:text>1305577318185</ns2:text>
                </ns2:uid>
                <ns2:summary>
                  <ns2:text>try this - 0</ns2:text>
                </ns2:summary>
                <ns2:dtstart>
                  <ns2:date-time>2011-04-06T15:00:00Z</ns2:date-time>
                </ns2:dtstart>
                <ns2:dtend>
                  <ns2:date-time>2011-04-06T16:00:00Z</ns2:date-time>
                </ns2:dtend>
                <ns2:tolerance>
                  <ns2:tolerate>
                    <ns2:startbefore>P5W</ns2:startbefore>
                    <ns2:startafter>P1M</ns2:startafter>
                    <ns2:endbefore>PT20S</ns2:endbefore>
                    <ns2:endafter>PT2H</ns2:endafter>
                    <ns2:durationlong>P1Y5M</ns2:durationlong>
                    <ns2:durationshort>PT5S</ns2:durationshort>
                    <ns2:granularity>PT15M</ns2:granularity>
                  </ns2:tolerate>
                </ns2:tolerance>
              </ns2:properties>
            </ns2:interval>
            <ns2:interval>
              <ns2:properties>
                <ns2:uid>
                  <ns2:text>1305577318194</ns2:text>
                </ns2:uid>
                <ns2:summary>
                  <ns2:text>try this - 1</ns2:text>
                </ns2:summary>
                <ns2:dtstart>
                  <ns2:date-time>2011-04-06T15:00:00Z</ns2:date-time>
                </ns2:dtstart>
                <ns2:dtend>
                  <ns2:date-time>2011-04-06T16:00:00Z</ns2:date-time>
                </ns2:dtend>
                <ns2:related-to>
                  <ns2:parameters>
                    <ns2:reltype>
                      <ns2:text>STARTTOFINISH</ns2:text>
                    </ns2:reltype>
                  </ns2:parameters>
                  <ns2:text>1305577318185</ns2:text>
                </ns2:related-to>
              </ns2:properties>
            </ns2:interval>
            <ns2:interval>
              <ns2:properties>
                <ns2:uid>
                  <ns2:text>1305577318197</ns2:text>
                </ns2:uid>
                <ns2:summary>
                  <ns2:text>try this - 2</ns2:text>
                </ns2:summary>
                <ns2:dtstart>
                  <ns2:date-time>2011-04-06T15:00:00Z</ns2:date-time>
                </ns2:dtstart>
                <ns2:dtend>
                  <ns2:date-time>2011-04-06T16:00:00Z</ns2:date-time>
                </ns2:dtend>
                <ns2:related-to>
                  <ns2:parameters>
                    <ns2:reltype>
                      <ns2:text>STARTTOFINISH</ns2:text>
                    </ns2:reltype>
                  </ns2:parameters>
                  <ns2:text>1305577318194</ns2:text>
                </ns2:related-to>
              </ns2:properties>
            </ns2:interval>
            <ns2:interval>
              <ns2:properties>
                <ns2:uid>
                  <ns2:text>1305577318199</ns2:text>
                </ns2:uid>
                <ns2:summary>
                  <ns2:text>try this - 3</ns2:text>
                </ns2:summary>
                <ns2:dtstart>
                  <ns2:date-time>2011-04-06T15:00:00Z</ns2:date-time>
                </ns2:dtstart>
                <ns2:dtend>
                  <ns2:date-time>2011-04-06T16:00:00Z</ns2:date-time>
                </ns2:dtend>
                <ns2:related-to>
                  <ns2:parameters>
                    <ns2:reltype>
                      <ns2:text>STARTTOFINISH</ns2:text>
                    </ns2:reltype>
                  </ns2:parameters>
                  <ns2:text>1305577318197</ns2:text>
                </ns2:related-to>
              </ns2:properties>
            </ns2:interval>
          </ns2:components>
        </ns2:vcalendar>
      </ns2:icalendar>
    </ns3:addItem>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";>
  <SOAP-ENV:Header/>
  <SOAP-ENV:Body>
    <ns3:addItemResponse xmlns:ns2="urn:ietf:params:xml:ns:icalendar-2.0" xmlns:ns3="http://docs.oasis-open.org/ns/wscal/calws-soap"; xmlns:ns4="urn:ietf:params:xml:ns:caldav" xmlns:ns5="http://docs.oasis-open.org/ns/xri/xrd-1.0";>
      <ns3:status>Error</ns3:status>
      <ns3:errorResponse>
        <ns3:invalidCalendarObjectResource/>
      </ns3:errorResponse>
    </ns3:addItemResponse>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

schemas.zip



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]