ws-calendar — archive
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
— [Date Index]
| [Thread Index]
| [Month Index]
| [List Home]
Different vavailability example
Resending this as me @ rpi in case it matters... Attached is the trace of a SOAP message for the addition of a vavailability object. This was generated using my test suite which read the XML for the icalendar object and unmarshalled it into an internal set of classes. I added the icalendar object to the SOAP message and sent it to the server - which responded with an unsupported message as I expected. I believe this is a good exercise of the schema - at least in the JAXB world. The actual data is a recasting of an example in the draft vavailability spec at
http://tools.ietf.org/html/draft-daboo-calendar-availability-02
I've also attached the original XML (vavail1.xcs)
--
Mike Douglass
[email protected]
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"?> <xcal:icalendar xmlns:xcal="urn:ietf:params:xml:ns:icalendar-2.0">
<xcal:vcalendar>
<xcal:components>
<xcal:vavailability>
<xcal:properties>
<xcal:organizer>
<xcal:cal-address> mailto:[email protected] </xcal:cal-address>
</xcal:organizer>
<xcal:uid>
<xcal:text>[email protected]</xcal:text>
</xcal:uid>
<xcal:dtstamp>
<xcal:date-time>2011-10-05T13:32:25</xcal:date-time>
</xcal:dtstamp>
<xcal:dtstart>
<parameters>
<tzid><text>America/Montreal</text></tzid>
</parameters>
<xcal:date-time>2011-10-02T00:00:00</xcal:date-time>
</xcal:dtstart>
<xcal:dtend>
<parameters>
<tzid><text>America/Montreal</text></tzid>
</parameters>
<xcal:date-time>2011-12-02T00:00:00</xcal:date-time>
</xcal:dtend>
</xcal:properties>
<xcal:components>
<xcal:available>
<xcal:properties>
<xcal:uid>
<xcal:text>[email protected]</xcal:text>
</xcal:uid>
<xcal:summary>
<xcal:text>Monday to Thursday from 9:00 to 17:00</xcal:text>
</xcal:summary>
<xcal:dtstart>
<parameters>
<tzid><text>America/Montreal</text></tzid>
</parameters>
<xcal:date-time>2011-10-02T09:00:00</xcal:date-time>
</xcal:dtstart>
<xcal:dtend>
<parameters>
<tzid><text>America/Montreal</text></tzid>
</parameters>
<xcal:date-time>2011-10-02T17:00:00</xcal:date-time>
</xcal:dtend>
<xcal:rrule>
<xcal:recur>
<xcal:freq>WEEKLY</xcal:freq>
<xcal:byday>MO</xcal:byday>
<xcal:byday>TU</xcal:byday>
<xcal:byday>WE</xcal:byday>
<xcal:byday>TH</xcal:byday>
</xcal:recur>
</xcal:rrule>
</xcal:properties>
</xcal:available>
<xcal:available>
<xcal:properties>
<xcal:uid>
<xcal:text>[email protected]</xcal:text>
</xcal:uid>
<xcal:summary>
<xcal:text>Friday from 9:00 to 12:00</xcal:text>
</xcal:summary>
<xcal:dtstart>
<parameters>
<tzid><text>America/Montreal</text></tzid>
</parameters>
<xcal:date-time>2011-10-06T09:00:00</xcal:date-time>
</xcal:dtstart>
<xcal:dtend>
<parameters>
<tzid><text>America/Montreal</text></tzid>
</parameters>
<xcal:date-time>2011-10-06T12:00:00</xcal:date-time>
</xcal:dtend>
<xcal:rrule>
<xcal:recur>
<xcal:freq>WEEKLY</xcal:freq>
</xcal:recur>
</xcal:rrule>
</xcal:properties>
</xcal:available>
</xcal:components>
</xcal:vavailability>
</xcal:components>
</xcal:vcalendar> </xcal:icalendar>
<?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:vavailability>
<ns2:properties>
<ns2:organizer>
<ns2:cal-address> mailto:[email protected] </ns2:cal-address>
</ns2:organizer>
<ns2:uid>
<ns2:text>[email protected]</ns2:text>
</ns2:uid>
<ns2:dtstamp/>
<ns2:dtstart>
<ns2:date-time>2011-10-02T00:00:00</ns2:date-time>
</ns2:dtstart>
<ns2:dtend>
<ns2:date-time>2011-12-02T00:00:00</ns2:date-time>
</ns2:dtend>
</ns2:properties>
<ns2:components>
<ns2:available>
<ns2:properties>
<ns2:uid>
<ns2:text>[email protected]</ns2:text>
</ns2:uid>
<ns2:summary>
<ns2:text>Monday to Thursday from 9:00 to 17:00</ns2:text>
</ns2:summary>
<ns2:dtstart>
<ns2:date-time>2011-10-02T09:00:00</ns2:date-time>
</ns2:dtstart>
<ns2:dtend>
<ns2:date-time>2011-10-02T17:00:00</ns2:date-time>
</ns2:dtend>
<ns2:rrule>
<ns2:recur>
<ns2:freq>WEEKLY</ns2:freq>
<ns2:byday>MO</ns2:byday>
<ns2:byday>TU</ns2:byday>
<ns2:byday>WE</ns2:byday>
<ns2:byday>TH</ns2:byday>
</ns2:recur>
</ns2:rrule>
</ns2:properties>
</ns2:available>
<ns2:available>
<ns2:properties>
<ns2:uid>
<ns2:text>[email protected]</ns2:text>
</ns2:uid>
<ns2:summary>
<ns2:text>Friday from 9:00 to 12:00</ns2:text>
</ns2:summary>
<ns2:dtstart>
<ns2:date-time>2011-10-06T09:00:00</ns2:date-time>
</ns2:dtstart>
<ns2:dtend>
<ns2:date-time>2011-10-06T12:00:00</ns2:date-time>
</ns2:dtend>
<ns2:rrule>
<ns2:recur>
<ns2:freq>WEEKLY</ns2:freq>
</ns2:recur>
</ns2:rrule>
</ns2:properties>
</ns2:available>
</ns2:components>
</ns2:vavailability>
</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>
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
— [Date Index]
| [Thread Index]
| [Month Index]
| [List Home]