开发者

Javascript ASMX web service call - Handling Exceptions

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜