JSONP回调错误发送大型电子邮件时 [英] JSONP Callback Error When send large email
本文介绍了JSONP回调错误发送大型电子邮件时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个发送电子邮件的网络服务,当我发送它成功发送的小消息。
如果我在邮件中发送了很多日期,它会在发送电子邮件时返回Fault,我试试在web配置中设置maxJsonLength =500000000,但仍然有错误。
在这种情况下你能帮我吗?
I have a web service to send email, when i send it small message it send successfully.
If i send a lot of date in the message it return with Fault in sending email, I try to set maxJsonLength="500000000" in web config, but still there is error.
Could you please help me in this situation.
var wsUrl = "URL";
$.ajax({
url: wsUrl,
data: {
},
dataType: "jsonp",
contentType: "application/json",
success: function (json) {
},
error: function (e) {
}
});
我使用此代码来使用网络服务。
I use this code to consume web service.
推荐答案
.ajax({
url:wsUrl,
data:{
},
dataType:jsonp,
contentType:application / json,
成功:函数(json){
},
错误:函数(e){
}
} );
.ajax({ url: wsUrl, data: { }, dataType: "jsonp", contentType: "application/json", success: function (json) { }, error: function (e) { } });
我使用此代码来使用网络服务。
I use this code to consume web service.
这篇关于JSONP回调错误发送大型电子邮件时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文