While creating an new appointment, I am getting Error: HTTP/1.1 403
(Forbidden)
error.
My code is:
?xml version='1.0'?a

ropertyupdate 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:seta

ropa:contentclassurn:content-classes:appointment/a:contentclasse

utlookmessageclassIPM.Appointm ent/e

utlookmessageclassa:idAQEAAAAAAEZ1AgAAAAAoCA gAAAAA
/a:id/a

ropa

ropmail:subjectSolve Hexadecimal Error by Atul Saxena
/mail:subject/a

ropa

ropmail:textdescriptionNetaji Subhash
Palace/mail:textdescription/a

ropa

ropcal:locationNetaji Subhash
Palace/cal:location/a

ropa

ropcal:dtstart2007-09-27T03:30:00.000Z
/cal:dtstart/a

ropa

ropcal:dtend2007-09-27T04:00:00.000Z
/cal:dtendcal:instancetype
dt:dt="int"0/cal:instancetype/a

ropa

ropcal:busystatusBUSY
/cal:busystatus/a

ropa

ropcal: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/a

rop/a:set/a

ropertyupdate
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:hrefa

ropstata:statusHTTP/1.1
403
Forbidden/a:statusa

ropa:id//a

rop/a

ropstat/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