Java 如何在blackberry中使用Exchange Web服务
我想使用自动发现Exchange Web服务从blackberry应用程序中的outlook日历获取与会议相关的信息 为此,我使用EWS SOAP自动发现请求xml:Java 如何在blackberry中使用Exchange Web服务,java,soap,blackberry,exchangewebservices,Java,Soap,Blackberry,Exchangewebservices,我想使用自动发现Exchange Web服务从blackberry应用程序中的outlook日历获取与会议相关的信息 为此,我使用EWS SOAP自动发现请求xml: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:a="http://schemas.microsoft.com/exchange/2010/Autodiscover" xmlns:wsa="http://www.w3.org
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:a="http://schemas.microsoft.com/exchange/2010/Autodiscover"
xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<a:RequestedServerVersion>Exchange2013</a:RequestedServerVersion>
<wsa:Action>http://schemas.microsoft.com/exchange/2010/Autodiscover/Autodiscover/GetUserSettings</wsa:Action>
<wsa:To>https://autodiscover.exchange.microsoft.com/autodiscover/autodiscover.svc</wsa:To>
</soap:Header>
<soap:Body>
<a:GetUserSettingsRequestMessage xmlns:a="http://schemas.microsoft.com/exchange/2010/Autodiscover">
<a:Request>
<a:Users>
<a:User>
<a:Mailbox>User1@Contoso.com</a:Mailbox>
</a:User>
</a:Users>
<a:RequestedSettings>
<a:Setting>UserDisplayName</a:Setting>
<a:Setting>UserDN</a:Setting>
<a:Setting>UserDeploymentId</a:Setting>
<a:Setting>InternalMailboxServer</a:Setting>
<a:Setting>MailboxDN</a:Setting>
<a:Setting>PublicFolderServer</a:Setting>
<a:Setting>ActiveDirectoryServer</a:Setting>
<a:Setting>ExternalMailboxServer</a:Setting>
<a:Setting>EcpDeliveryReportUrlFragment</a:Setting>
<a:Setting>EcpPublishingUrlFragment</a:Setting>
<a:Setting>EcpTextMessagingUrlFragment</a:Setting>
<a:Setting>ExternalEwsUrl</a:Setting>
<a:Setting>CasVersion</a:Setting>
<a:Setting>EwsSupportedSchemas</a:Setting>
</a:RequestedSettings>
</a:Request>
</a:GetUserSettingsRequestMessage>
</soap:Body>
</soap:Envelope>
)
从链接:我得到需要点击的URL是
现在,当我使用前面提到的请求xml(HttpConnection-POST方法)点击url时,得到的401响应代码表明身份验证失败
我尝试测试自动发现配置,它正在成功运行
那么,在点击URL之前的身份验证过程是什么呢?或者,我还缺少其他一些东西
我搜索了很多,但没有找到任何解决方案
提前感谢。请编辑问题并包含您的代码,您的问题已被否决。如果你想让我们帮忙,就把精力放在你的问题上。您使用的是什么开发环境(必要时添加java标记)。另外,您的问题标题可能会更好。请立即编辑问题。