Thread
:
Showing Error: HTTP/1.1 403 (Forbidden)
View Single Post
#
2
October 11th 07, 03:17 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
Posts: 5,848
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'?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
Ken Slovak - [MVP - Outlook]
View Public Profile
View message headers
Find all posts by Ken Slovak - [MVP - Outlook]
Find all threads started by Ken Slovak - [MVP - Outlook]
Ads