开发者

Flex HTTPService Error

开发者 https://www.devze.com 2022-12-17 12:11 出处:网络
I am creating a Flex application and am using an HTTPService to retrieve XML from an asmx web service.This web service needs one string parameter.This parameter contains multiple options separated by

I am creating a Flex application and am using an HTTPService to retrieve XML from an asmx web service. This web service needs one string parameter. This parameter contains multiple options separated by ~ and parsed apart. This web service works with a limited length of string, otherwise an error is retrieved if the string is long enough and no xml is retrieved. However if the web service call开发者_StackOverflow中文版 is plugged directly into IE, the proper xml is retrieved.

The error:

faultCode:Server.Error.Request faultString:'HTTP request error' faultDetail:'Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error.

I believe the problem is a timeout issue but am unsure how to resolve this. Any help?


It actually appears to only be an issue with IE. Everything works fine with Firefox and Chrome.


If it is a timeout error, you can set the requestTimeout property on your HTTPService object to 0 to prevent a timeout.

However, from your description I don't think a timeout is the issue. Could you post your code or sample code to demonstrate the problem? Thanks!


make sure you have set the contentType and method properties appropriately. if string lenght is the issue then try to use POST instead of GET

0

精彩评论

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