View Single Post
  #2  
Old October 11th 07, 03:17 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Showing Error: HTTP/1.1 403 (Forbidden)

Is this WebDAV code accessing the server? You might be far better off
posting a message like this in an Exchange development group, since this one
deals with programming with the Outlook object model.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Atul Saxena" wrote in message
news
While creating an new appointment, I am getting Error: HTTP/1.1 403
(Forbidden)
error.

My code is:

?xml version='1.0'?aropertyupdate xmlns:a='DAV:'
xmlns:m='urn:schemas:mailheader:' xmlns:cal="urn:schemas:calendar:"
xmlns:mapi="http://schemas.microsoft.com/mapi/"
xmlns:e="http://schemas.microsoft.com/exchange/"
xmlns:dt='urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/'
xmlns:mail='urn:schemas:httpmail:'
a:setaropa:contentclassurn:content-classes:appointment/a:contentclasseutlookmessageclassIPM.Appointm ent/eutlookmessageclassa:idAQEAAAAAAEZ1AgAAAAAoCA gAAAAA
/a:id/aroparopmail:subjectSolve Hexadecimal Error by Atul
Saxena
/mail:subject/aroparopmail:textdescriptionNetaji Subhash
Palace/mail:textdescription/aroparopcal:locationNetaji Subhash
Palace/cal:location/aroparopcal:dtstart2007-09-27T03:30:00.000Z
/cal:dtstart/aroparopcal:dtend2007-09-27T04:00:00.000Z
/cal:dtendcal:instancetype
dt:dt="int"0/cal:instancetype/aroparopcal:busystatusBUSY
/cal:busystatus/aroparopcal:meetingstatusTENTATIVE
/cal:meetingstatuscal:alldayevent
dt:dt="boolean"0/cal:alldayeventcal:responserequested
dt:dt="boolean"1/cal:responserequestedcal:reminderoffset
m/m:tomapi:finvited
dt:dt="boolean"1/mapi:finvited/arop/a:set/aropertyupdate

oXMLHttp = CreateObject("Microsoft.XMLHTTP")
oXMLHttp.open ("PROPPATCH",
/Calendar/",
False,
Me.UserNameAlias, Me.Password)
' Set up request headers.
oXMLHttp.setRequestHeader("Content-Type",
"text/xml")

' Send the query.
oXMLHttp.send(sQuery)

Response is:

?xml version="1.0"?a:multistatus
xmlns:b="http://schemas.microsoft.com/exchange/"
/Calendar/a:hrefaropstata:statusHTTP/1.1
403
Forbidden/a:statusaropa:id//arop/aropstat/a:response/a:multistatus

This error is not coming when I am updating any appointment but at the
time
of creation this response is coming. Please tell me the solution of this.

Thanks in advance.

Atul Saxena


Ads