2

そのため、ColdFusion 8で作業しており、同じページの複数の異なるユーザーのExchangeサーバーからカレンダー/スケジュールを取得しようとしています。接続を開くときにのみメールボックスを指定できるように見えるので、残念ながら、アクセスしたいメールボックスごとに新しい接続を開く必要があるようです。問題は、私が開いた最初の接続だけが機能しているように見えることです...それ以降の接続は失敗します。

私は次のものを持っています:

<cfloop list="mailbox1,mailbox2,mailbox3" index="mailboxname">

<cfexchangeconnection action="open" connection="conExchangeSchedules" 
    server="****"
    username="****"
    password="****"
    mailboxname="#mailboxname#"
    protocol="https"
formbasedauthentication="false">

<cfexchangecalendar
    action = "get"
    name = "qrySchedule"
    connection = "conExchangeSchedules">
        <cfexchangefilter name="StartTime" from="{ts '2013-01-06 00:00:00'}" to="{ts '2013-01-12 23:59:59'}">
</cfexchangecalendar>

<cfexchangeconnection action="close" connection="conExchangeSchedules">

<cfdump var="#qrySchedule#">

</cfloop>

最初のメールボックスのみが成功します。私はすべてのメールボックスが有効であることを知っています。なぜなら、それぞれを別々に、そしてリストの最初の値として試したからです。

ただし、他のすべての接続はエラーを返します

Could not login to the Exchange server.

Verify the server name, username, and password. Ensure that proper client certificates are installed.

最初の接続は正常に機能するため、明らかに有用なエラーではありません(したがって、必要なすべての設定を「確認」します)。

私は、異なる名前で連続する各接続を作成しようとさえしました。同じ問題。

誰かが何か指針やアイデアを持っていますか?

前もって感謝します!-カール

4

1 に答える 1

1

あなたの質問の一部に答えてください。 タグで指定できるのはmailboxName属性のみだとおっしゃいましたcfexchangeconnection。必ずしもそうではありません...cfexchangecalendarタグのドキュメントを読むと、このメモが含まれています(「接続属性を省略した場合..」ステートメントに注意してください)。

Note: For all actions, see cfexchangeconnection for additional attributes that you use if you do not specify the connection attribute. If you omit the connection attribute, create a temporary connection by specifying cfexchangeconnection tag attributes in the cfexchangecalendar tag. In this case, ColdFusion closes the connection when the tag completes. For details, see the cfexchangeconnection tag open action.

So I read that to mean you can create a temporary connection to the Exchange server by including the cfexchangeconnection tag's open attributes in the cfexchangecalendar tag itself.

Not sure if that will fix your other issue though.

Referenced documentation for the cfexchangecalendar tag.

于 2013-01-11T17:14:15.193 に答える