我正在使用 Coldfusion、IIS 7.0、Windows 2008r2 代表在托管 Exchange 服务器上的 Coldfusion 页面中确定的用户插入日历事件。这在几周前开始工作,但停止了(无法连接到交换服务器)。Exchange 服务器的技术支持人员表示,当我第一次开始解决该问题时,WebDav 不再受支持。我刚和他们通了电话,他们说我被告知错了,仍然支持 WebDav。但是,他们无法测试和支持 Coldfusion。我已经追了2个星期了。有没有人可以帮我调试这个问题?
<cfscript>
// Fill Event Struct From Arguments.
sEvent.AllDayEvent="no";
sEvent=StructNew();
sEvent.Subject= 'Test Exchange';
sEvent.StartTime=createDateTime(Year(EventStartDateTime), Month(EventStartDateTime),
Day(EventStartDateTime), evaluate(Hour(EventStartDateTime) - val(attributes.AdminTimeZone)), Minute(EventStartDateTime), 0);
sEvent.EndTime=createDateTime(Year(EventEndDateTime), Month(EventEndDateTime),
Day(EventEndDateTime), evaluate(Hour(EventEndDateTime) - val(attributes.AdminTimeZone)), Minute(EventEndDateTime), 0);
sEvent.Location = '';
sEvent.Reminder = '';
sEvent.Importance = "Normal";
sEvent.Sensitivity = "Normal";
sEvent.message = 'test exchange';
sEvent.OptionalAttendees = '';
</cfscript>
<cfexchangeconnection action="open" connection="#Application.Exchange.Connector#"
server="#Application.Exchange.ExchangeHost#"
username="#UserName#"
mailboxname="#EmailAddress#"
password="#Pword#"
Protocol="#Application.Exchange.Protocol#"
port="#Application.Exchange.Port#"
formbasedauthentication="#Application.Exchange.FormBased#"
formbasedauthenticationURL="#Application.Exchange.FormURL#"
/>
我使用的数据是:
exch016\george_ttt
Pword1234
04-Nov-13
04-Nov-13
EXVMBX016-5.exch016.msoutlookonline.net
Error:
connection="exchangeConn"
server="XXXXXX016-5.exch016.msoutlookonline.net"
Protocol="https"
port="443"
formbasedauthentication="TRUE"
formbasedauthenticationURL="https://owa016.msoutlookonline.net/owa/auth/logon.aspx"