Exchange Web服务:错误5015:经过身份验证的用户没有足够的权限来发出此请求

时间:2012-11-08 12:16:41

标签: java authentication soap exchangewebservices

我正在尝试在Outlook 365帐户上执行GetUserAvailability请求。

我在验证后将请求发送到网址:

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:exm="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:ext="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
    <ext:TimeZoneContext>
        <ext:TimeZoneDefinition Name="(UTC-05:00) Eastern Time (US &amp; Canada)" Id="Eastern Standard Time">
            <ext:Periods>
                <ext:Period Bias="PT5H" Name="Standard" Id="trule:Microsoft/Registry/Eastern Standard Time/2006-Standard" />
                <ext:Period Bias="PT4H" Name="Daylight" Id="trule:Microsoft/Registry/Eastern Standard Time/2006-Daylight" />
                <ext:Period Bias="PT5H" Name="Standard" Id="trule:Microsoft/Registry/Eastern Standard Time/2007-Standard" />
                <ext:Period Bias="PT4H" Name="Daylight" Id="trule:Microsoft/Registry/Eastern Standard Time/2007-Daylight" />
            </ext:Periods>
            <ext:TransitionsGroups>
                <ext:TransitionsGroup Id="0">
                    <ext:RecurringDayTransition>
                        <ext:To Kind="Period">trule:Microsoft/Registry/Eastern Standard Time/2006-Daylight</ext:To>
                        <ext:TimeOffset>PT2H</ext:TimeOffset>
                        <ext:Month>4</ext:Month>
                        <ext:DayOfWeek>Sunday</ext:DayOfWeek>
                        <ext:Occurrence>1</ext:Occurrence>
                    </ext:RecurringDayTransition>
                    <ext:RecurringDayTransition>
                        <ext:To Kind="Period">trule:Microsoft/Registry/Eastern Standard Time/2006-Standard</ext:To>
                        <ext:TimeOffset>PT2H</ext:TimeOffset>
                        <ext:Month>10</ext:Month>
                        <ext:DayOfWeek>Sunday</ext:DayOfWeek>
                        <ext:Occurrence>-1</ext:Occurrence>
                    </ext:RecurringDayTransition>
                </ext:TransitionsGroup>
                <ext:TransitionsGroup Id="1">
                    <ext:RecurringDayTransition>
                        <ext:To Kind="Period">trule:Microsoft/Registry/Eastern Standard Time/2007-Daylight</ext:To>
                        <ext:TimeOffset>PT2H</ext:TimeOffset>
                        <ext:Month>3</ext:Month>
                        <ext:DayOfWeek>Sunday</ext:DayOfWeek>
                        <ext:Occurrence>2</ext:Occurrence>
                    </ext:RecurringDayTransition>
                    <ext:RecurringDayTransition>
                        <ext:To Kind="Period">trule:Microsoft/Registry/Eastern Standard Time/2007-Standard</ext:To>
                        <ext:TimeOffset>PT2H</ext:TimeOffset>
                        <ext:Month>11</ext:Month>
                        <ext:DayOfWeek>Sunday</ext:DayOfWeek>
                        <ext:Occurrence>1</ext:Occurrence>
                    </ext:RecurringDayTransition>
                </ext:TransitionsGroup>
            </ext:TransitionsGroups>
            <ext:Transitions>
                <ext:Transition>
                    <ext:To Kind="Group">0</ext:To>
                </ext:Transition>
                <ext:AbsoluteDateTransition>
                    <ext:To Kind="Group">1</ext:To>
                    <ext:DateTime>2007-01-01T00:00:00</ext:DateTime>
                </ext:AbsoluteDateTransition>
            </ext:Transitions>
        </ext:TimeZoneDefinition>
    </ext:TimeZoneContext>
    <exm:RequestTypeHeader>
        <ext:RequestType>CrossForest</ext:RequestType>
    </exm:RequestTypeHeader>
    <exm:SerializedSecurityContext>
        <exm:UserSid>S-1-5-21-714168755-2343952202-3006219142-1210</exm:UserSid>
        <exm:GroupSids>
            <exm:GroupIdentifier Attributes="7">
                <ext:SecurityIdentifier>S-1-5-21-714168755-2343952202-3006219142-513</ext:SecurityIdentifier>
            </exm:GroupIdentifier>
            <exm:GroupIdentifier Attributes="7">
                <ext:SecurityIdentifier>S-1-1-0</ext:SecurityIdentifier>
            </exm:GroupIdentifier>
            <exm:GroupIdentifier Attributes="7">
                <ext:SecurityIdentifier>S-1-5-2</ext:SecurityIdentifier>
            </exm:GroupIdentifier>
            <exm:GroupIdentifier Attributes="7">
                <ext:SecurityIdentifier>S-1-5-11</ext:SecurityIdentifier>
            </exm:GroupIdentifier>
            <exm:GroupIdentifier Attributes="7">
                <ext:SecurityIdentifier>S-1-5-15</ext:SecurityIdentifier>
            </exm:GroupIdentifier>
            <exm:GroupIdentifier Attributes="3221225479">
                <ext:SecurityIdentifier>S-1-5-5-0-85073461</ext:SecurityIdentifier>
            </exm:GroupIdentifier>
            <exm:GroupIdentifier Attributes="536870919">
                <ext:SecurityIdentifier>S-1-5-21-714168755-2343952202-3006219142-1131</ext:SecurityIdentifier>
            </exm:GroupIdentifier>
        </exm:GroupSids>
    </exm:SerializedSecurityContext>
</soap:Header>
<soap:Body>
    <exm:GetUserAvailabilityRequest>
        <ext:TimeZone>
            <ext:Bias>300</ext:Bias>
            <ext:StandardTime>
                <ext:Bias>0</ext:Bias>
                <ext:Time>02:00:00</ext:Time>
                <ext:DayOrder>1</ext:DayOrder>
                <ext:Month>11</ext:Month>
                <ext:DayOfWeek>Sunday</ext:DayOfWeek>
            </ext:StandardTime>
            <ext:DaylightTime>
                <ext:Bias>-60</ext:Bias>
                <ext:Time>02:00:00</ext:Time>
                <ext:DayOrder>2</ext:DayOrder>
                <ext:Month>3</ext:Month>
                <ext:DayOfWeek>Sunday</ext:DayOfWeek>
            </ext:DaylightTime>
        </ext:TimeZone>
        <exm:MailboxDataArray>
            <ext:MailboxData>
                <ext:Email>
                    <ext:Name>azerty qsdfg</ext:Name>
                    <ext:Address>azerty@gfdsq.onmicrosoft.com</ext:Address>
                    <ext:RoutingType>SMTP</ext:RoutingType>
                </ext:Email>
                <ext:AttendeeType>Required</ext:AttendeeType>
                <ext:ExcludeConflicts>false</ext:ExcludeConflicts>
            </ext:MailboxData>
        </exm:MailboxDataArray>
        <ext:FreeBusyViewOptions>
            <ext:TimeWindow>
                <ext:StartTime>2012-10-29T00:00:00</ext:StartTime>
                <ext:EndTime>2012-10-31T00:00:00</ext:EndTime>
            </ext:TimeWindow>
            <ext:MergedFreeBusyIntervalInMinutes>15</ext:MergedFreeBusyIntervalInMinutes>
            <ext:RequestedView>MergedOnly</ext:RequestedView>
        </ext:FreeBusyViewOptions>
    </exm:GetUserAvailabilityRequest>
</soap:Body>

我正在收到EWS的尸体:

    <?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Body>
        <s:Fault>
            <faultcode xmlns:a="http://schemas.microsoft.com/exchange/services/2006/types">a:ErrorProxyRequestNotAllowed</faultcode>
            <faultstring xml:lang="en-US">The authenticated user doesn't have sufficient privileges to issue this request.</faultstring>
            <detail>
                <m:ErrorCode xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">5015</m:ErrorCode>
            </detail>
        </s:Fault>
    </s:Body>
</s:Envelope>

错误5015是什么意思? 这是请求中还是交换本身的问题?

提前谢谢

于连

0 个答案:

没有答案