Hi James,

Thanks for all the reply...
Here is what I did...its not working as the proppatchMethod is returning false..
Can you please tell me what am I doing wrong?

---------------------------------
Hashtable Calendar = new Hashtable();

String locationVal = "meetappt Location";
String dtstartVal = "2005-01-18T15:00:00.000Z";
String dtendVal = "2005-01-18T23:30:00.000Z";
String instancetypeVal = "0";
String busystatusVal = "BUSY";
String meetingstatusVal = "CONFIRMED";
String alldayeventVal = "0";
String responserequestedVal = "1";

PropertyName update     = new PropertyName(strXMLNSInfo,"propertyupdate");
PropertyName set= new PropertyName("DAV:","set");
PropertyName prop = new PropertyName("DAV:","prop");
PropertyName contentclass = new PropertyName("DAV:","contentclass");
PropertyName messageclass = new PropertyName
("http://schemas.microsoft.com/exchange/","outlookmessageclass";);

PropertyName location = new PropertyName("urn:schemas:calendar:","location");
PropertyName zone = new
PropertyName("urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/","dt");
PropertyName start = new PropertyName("urn:schemas:calendar:","dtstart");
PropertyName end = new PropertyName("urn:schemas:calendar:","dtend");
PropertyName instancetype = new
PropertyName("urn:schemas:calendar:","instancetype");
PropertyName busyStatus= new PropertyName("urn:schemas:calendar:","busystatus");
PropertyName meetingStatus = new
PropertyNam("urn:schemas:calendar:","meetingstatus ");
PropertyName alldayevent = new
PropertyNam("urn:schemas:calendar:","alldayevent");
PropertyName response= new
PropertyName("urn:schemas:calendar:","responserequested");

Calendar.put((PropertyName)update,"");
Calendar.put((PropertyName)set,(String)"");
Calendar.put((PropertyName)contentclass,(String)"urn:content-classes:appointment");
Calendar.put((PropertyName)messageclass,"");

Calendar.put((PropertyName)location,locationVal);
Calendar.put((PropertyName)start,dtstartVal);
Calendar.put((PropertyName)end,dtendVal);
Calendar.put((PropertyName)instancetype,instancetypeVal);
Calendar.put((PropertyName)busyStatus,busystatusVal);
Calendar.put((PropertyName)meetingStatus,meetingstatusVal);
Calendar.put((PropertyName)alldayevent,alldayeventVal);
Calendar.put((PropertyName)response,responserequestedVal);

wr.proppatchMethod(Calendar,true);

-----------------

Thanks!!
Sud.


On Mon, 17 Jan 2005 18:25:10 -0800, James Mason <[EMAIL PROTECTED]> wrote:
> Take a look at the javadoc for the PropertyName class:
> http://jakarta.apache.org/slide/clientjavadoc/org/apache/webdav/lib/PropertyName.html
> 
> The constructor takes two arguments, the namespace of the property and
> the local name of the property. So
> 
>    <o:Author xmlns:o="urn:schemas-microsoft-com:office:office">
>        Jun Cao
>    </o:Author>
> 
> would be
> 
>    new PropertyName("urn:schemas-microsoft-com:office:office",
> "Author")
> 
> -James
> 
-- 
"Discipline is the bridge between goals and accomplishment.." Jim Rohn

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to