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.