使用WebDAV创建约会从IIS返回400错误请求错误 [英] Using WebDAV to Create an Appointment returns a 400 Bad Request Error from IIS

查看:514
本文介绍了使用WebDAV创建约会从IIS返回400错误请求错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已创建代码,如链接 http://msdn.microsoft .com / zh-cn / library / ms877306(EXCHG.65).aspx 使用WebDAV针对Exchange Server 2003在用户日历上创建约会,我收到400 Bad Request错误。下面是作为请求的一部分发送的实际XML。任何人都可以帮助确定我做错了什么吗?谢谢。


I have created code as outlined in the link http://msdn.microsoft.com/en-us/library/ms877306(EXCHG.65).aspx to create an appointment on a user's calendar using WebDAV against Exchange server 2003 and I receive a 400 Bad Request error back. Below is the actual XML that was sent as apart of the request. Can anyone help determine what it is that I am doing wrong? Thanks.


<?xml version =" 1.0"?>
< g:propertyupdate xmlns:g = QUOT; DAV:"的xmlns:E =" HTTP://schemas.microsoft.com/exchange/"的xmlns:MAPI = QUOT; HTTP://schemas.microsoft.com/mapi/"的xmlns:mapit地图= QUOT; HTTP://schemas.microsoft.com/mapi/proptag/"的xmlns:X =" XML:"的xmlns:CAL = QUOT;瓮:模式:日历:"的xmlns:DT = QUOT;瓮:UUID:c2f41010-65b3-11d1-a29f-00aa00c14882 /"的xmlns:头= QUOT;瓮:模式:mailheader:"的xmlns:邮件= QUOT;瓮:模式:HTTP邮件:">
< G:集>
< G:丙>
< G:内容类>瓮:内容 - 类:预约< /克:内容类>&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ; < e:outlookmessageclass> IPM.Appointment< / e:outlookmessageclass>
< mail:subject> Test Subject< / mail:subject>
< mail:htmldescription>约会摘要< / mail:htmldescription> ;< cal:location> Test Location< / cal:location>
< cal:dtstart dt:dt =" dateTime.tz"> 2010-01-29T02:12:03.000Z< ; / cal:dtstart>
< cal:dtend dt:dt =" dateTime.tz"> 2010-01-29T04:12:03.000Z< / cal:dtend>
< cal :instancetype dt:dt =" int"> 0< / cal:instancetype>
< cal:busystatus> BUSY< / cal:busystatus>
< cal:meetingstatus> CONFIRMED< / cal :meetingstatus>
< cal:alldayevent dt:dt =" boolean"> 0< / cal:alldayevent>
< cal:responserequested dt:dt =" boolean"> 1< / cal:responserequested>
< cal:reminderoffset dt:dt =" int"> 900< / cal:reminderoffset>
< cal:uid> {00000000-0000-0000-0000- 000000000000}< / CAL:UID>
<头呃:到> intraweb@taylormcnew.com< / header:到>
< mapi:finvited dt:dt =" boolean"> 1< / mapi:finvited>
< / g: prop>
< / g:set>
< / g:propertyupdate>

<?xml version="1.0"?>
<g:propertyupdate xmlns:g="DAV:" xmlns:e="http://schemas.microsoft.com/exchange/" xmlns:mapi="http://schemas.microsoft.com/mapi/" xmlns:mapit="http://schemas.microsoft.com/mapi/proptag/" xmlns:x="xml:" xmlns:cal="urn:schemas:calendar:" xmlns:dt="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/" xmlns:header="urn:schemas:mailheader:" xmlns:mail="urn:schemas:httpmail:">
<g:set>
<g:prop>
<g:contentclass>urn:content-classes:appointment</g:contentclass>                                               <e:outlookmessageclass>IPM.Appointment</e:outlookmessageclass>
<mail:subject>Test Subject</mail:subject>
<mail:htmldescription>Appointment Summary</mail:htmldescription>
<cal:location>Test Location</cal:location>
<cal:dtstart dt:dt="dateTime.tz">2010-01-29T02:12:03.000Z</cal:dtstart>
<cal:dtend dt:dt="dateTime.tz">2010-01-29T04:12:03.000Z</cal:dtend>
<cal:instancetype dt:dt="int">0</cal:instancetype>
<cal:busystatus>BUSY</cal:busystatus>
<cal:meetingstatus>CONFIRMED</cal:meetingstatus>
<cal:alldayevent dt:dt="boolean">0</cal:alldayevent>
<cal:responserequested dt:dt="boolean">1</cal:responserequested>
<cal:reminderoffset dt:dt="int">900</cal:reminderoffset>
<cal:uid>{00000000-0000-0000-0000-000000000000}</cal:uid>
<header:to>intraweb@taylormcnew.com</header:to>
<mapi:finvited dt:dt="boolean">1</mapi:finvited>
</g:prop>
</g:set>
</g:propertyupdate>

推荐答案

一般来说,如果你获取HTTP状态错误400,然后它表示语法格式错误。使用XML检查器检查并确认语法是否合格?
In general, if you get HTTP status error 400, then it indicates malformed syntax. Check it with XML checker and confirm syntax is wellformed or not?


这篇关于使用WebDAV创建约会从IIS返回400错误请求错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆