【发布时间】:2015-03-23 10:44:29
【问题描述】:
与 Exchange 服务器的通信是通过 SOAP 请求进行的。 当我尝试在移动设备上运行此代码时,我得到一个状态代码“0”。
如有任何帮助,我们将不胜感激。
代码:
$.ajax(
{
type: "POST",
username:'username',
password: 'password',
url: 'https://outlook.office365.com/EWS/Exchange.asmx',
contentType: "text/xml",
dataType: "xml",
data: soapRequest,
success: function(data)
{
hyper.log(data);
},
error: function(jqXHR, ajaxOptions, thrownError)
{
hyper.log('error status: ' + jqXHR.status + ' errorTrown: '+ thrownError);
}
});
【问题讨论】:
标签: javascript jquery cordova soap exchangewebservices