Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Showing Error: HTTP/1.1 403 (Forbidden) while creating an appointm (http://www.outlookbanter.com/outlook-vba/58748-showing-error-http-1-1-a.html)

Atul Saxena[_2_] October 11th 07 10:23 AM

Showing Error: HTTP/1.1 403 (Forbidden) while creating an appointm
 
While creating an appointment, I am getting Error: HTTP/1.1 403 (Forbidden)
error.

My code is:

?xml version='1.0'?a:propertyupdate 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:propa:contentclassurn:content-classes:appointment/a:contentclasse:outlookmessageclassIPM.Appointm ent/e:outlookmessageclassa:idAQEAAAAAAEZ1AgAAAAAoCA gAAAAA
/a:id/a:propa:propmail:subjectSolve Hexadecimal Error by Atul Saxena
/mail:subject/a:propa:propmail:textdescriptionNetaji Subhash
Palace/mail:textdescription/a:propa:propcal:locationNetaji Subhash
Palace/cal:location/a:propa:propcal:dtstart2007-09-27T03:30:00.000Z
/cal:dtstart/a:propa:propcal:dtend2007-09-27T04:00:00.000Z
/cal:dtendcal:instancetype
dt:dt="int"0/cal:instancetype/a:propa:propcal:busystatusBUSY
/cal:busystatus/a:propa:propcal: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:prop/a:set/a:propertyupdate

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

403
Forbidden/a:statusa:propa:id//a:prop/a:propstat/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


All times are GMT +1. The time now is 03:36 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com