开发者

Javascript ASMX web service call - Handling Exceptions

开发者 https://www.devze.com 2023-03-14 19:41 出处:网络
I\'ve got a web service that returns me an array of strings. I call this service from my javascrip开发者_运维问答t...

I've got a web service that returns me an array of strings. I call this service from my javascrip开发者_运维问答t...

WebPortal.WebPortalServices.GetAllProperties(success, fail);

Now this works fine, I have my success and fail functions in my javascript. There seems to be a limit, either its the file size of the array or maybe the item count in the array, but either way when I get above 2500~ strings in the returned array the call fails. I.e my fail function is called.

How can I get the reason the service failed in my 'fail' function? I get no errors in my ASMX when I step through the service, it returns the Array of strings fine.

Thanks,

James


function fail(arg)

{

alert("error has occured: " + arg._message);

}

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号