Hi James,
Sorry about that, didn't realize that both of them were same..(I was
trying to send you the url for creating an appointment (Webdav) and
sending meeting request (Webdav))...
Here's the part of the C# example code of the calendar that was there
on the MS site..
Here's the part that I am having trouble with ..
---------------------
System.Net.HttpWebRequest PROPPATCHRequest = null;
System.Net.WebResponse PROPPATCHResponse = null;
// Create the HttpWebRequest object.
PROPPATCHRequest =
(System.Net.HttpWebRequest)HttpWebRequest.Create(strCalendarUri +
strApptItem);
// Add the network credentials to the request.
PROPPATCHRequest.Credentials = MyCredentialCache;
// Specify the PROPPATCH method.
PROPPATCHRequest.Method = "PROPPATCH";
// Encode the body using UTF-8.
bytes = Encoding.UTF8.GetBytes((string)strApptRequest);
// Set the content header length. This must be
// done before writing data to the request stream.
PROPPATCHRequest.ContentLength = bytes.Length;
// Get a reference to the request stream.
PROPPATCHRequestStream = PROPPATCHRequest.GetRequestStream();
// Write the message body to the request stream.
PROPPATCHRequestStream.Write(bytes, 0, bytes.Length);
// Close the Stream object to release the connection
// for further use.
PROPPATCHRequestStream.Close();
// Set the content type header.
PROPPATCHRequest.ContentType = "text/xml";
// Create the appointment in the Calendar folder of the
// user's mailbox.
PROPPATCHResponse =
(System.Net.HttpWebResponse)PROPPATCHRequest.GetResponse();
// Clean up.
---------------------------------
Can you please tell me how to implement this or which classes or
methods should I use in slide's-webdav client..
Thanks!!
Sud.
On Sat, 15 Jan 2005 12:15:34 -0800, James Mason <[EMAIL PROTECTED]> wrote:
> The links are the same :). Anyway, here's some pointers.
>
> Look at the C# code. The syntax is close to Java so it should be fairly
> easy to follow. You can use the bit of code you already wrote. You'll
> only need to change a few things.
>
> You'll need a different url. The example shows how to send email, so
> you're going to need to find the necessary url for sending calendar
> items. It might be the same, so try the example first to find out :).
>
> When you build your WebdavResource, instead of calling list() to get the
> children call one of the putMethod() implementations to send your
> information to Exchange.
>
> The second part of the example uses MOVE to put the new email into
> someone's inbox, and you can use WebdavResource.moveMethod() to
> accomplish that.
>
> Check the javadocs for the webdav client for exact syntax.
>
> -James
>
--
"Discipline is the bridge between goals and accomplishment.." Jim Rohn
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]