This discussion is archived
3 Replies Latest reply: Dec 5, 2006 6:49 AM by ward.flores RSS

<Code>0020-00-00-0000005A</Code> The attendee is not supported

549251 Newbie
Currently Being Moderated
Hi All,

I am using Calendar Webservices Client (Calendarlet.jar 9i) to create events. I am unable to add vAttendee object to the event. I am following the example available in the documentation but still getting the following error:

<soap:Fault>
<faultcode>soap:Server.Error::System::SOAPRequest</faultcode>
<faultstring>The attendee is not supported</faultstring>
<detail>
<cwsl:Error xmlns:cwsl="http://www.oracle.com/WebServices/Calendaring/1.0/">
<Class>Error::System::SOAPRequest</Class>
<Code>0020-00-00-0000005A</Code>
<Line>428</Line>
<FileName>SOAPUtilities.cpp,v</FileName>
<Version>1.7</Version>
<LastMod>2003/09/16 19:40:42</LastMod>
<Author>ericp</Author>
<Date>Thu Nov 30 12:42:13 2006</Date>
<PID>30581</PID>
<TID>3026340784</TID>
<Level>Error</Level>
</cwsl:Error>
</detail>
</soap:Fault>

The following is the code snippet:

iCalendar iCal = new iCalendar();
vCalendar vCal = new vCalendar();
vEvent event = new vEvent();
vAttendee vAttend = new vAttendee();
// Initialize the Calendar Event
iCal.addvCalendar(vCal);
vCal.addvComponent(event);
event.addAttendee(vAttend);
               
               // Set the event attributes
event.setEventClass(vEvent.k_eventClassConfidential);
event.setUid("TestAppointment_UID_16");
event.setXEventType(vEvent.k_eventTypeAppointment);
TimeZone.setDefault(TimeZone.getTimeZone("CET"));
Calendar cal = Calendar.getInstance();
cal.clear();
cal.set(Calendar.YEAR, 2006);
cal.set(Calendar.MONTH, 11);
cal.set(Calendar.DATE, 2);
cal.set(Calendar.HOUR, 10);
cal.set(Calendar.MINUTE, 30);
event.setDtStart(CalendarUtils.getUTCDateTime(cal));
event.setDuration("PT01H30M");
event.setSummary("Test Meeting");
event.setLocation("Test Location");
event.setDescription("Test Meeting to test the addAttendee method");
event.setPriority(vEvent.k_priorityHigh);
               
               // Set the Attendee attributes
vAttend.setValue("mailto:mailme@mymail.com");
vAttend.setCN("Participant");
vAttend.setPartStat(vAttendee.k_accepted);
               
               // Initialize the Event Create command
CreateCommand create = new CreateCommand();
create.setCmdId("TestAppointment_16");
create.setiCalendar(iCal);
Calendarlet calet = new Calendarlet();
calet.setEndPointURL("http://mycalendar/ocas-bin/ocas.fcgi");
calet.setWantIOBuffers(true);
BasicAuth auth = new BasicAuth();
auth.setName("User");
auth.setPassword("password");
calet.setAuthenticationHeader(auth.getElement());
               // Make SOAP for creating the Calendar event
CalendaringResponse response = calet.Create(create.getElement());

Can anyone tell me whatz wrong with the code?

Thanks in advance
mka