0 Replies Latest reply on Nov 22, 2008 2:04 AM by arrowCai

    Server response HTTPService but Flex throw a 'HTTP request error' ?

    arrowCai
      Hi everyone, I came into a trouble when using HTTPService to get the infomation from Server.

      HTTPService Tag:
      <mx:HTTPService id="getCommand" showBusyCursor="true"
      resultFormat="xml" method="POST"
      result="xmlGetReturn()"
      concurrency="multiple" requestTimeout="0" fault="callFails(event)"/>

      Sending code:
      ...
      var param:Object = new Object();
      param.data = sendString;
      getCommand.send(param);
      ...

      fault Event handle method:
      private function callFails(event:FaultEvent):void {
      Alert.show("HTTPService is unavailable"+"\nReason:\n\n"+event.fault.message);
      }

      Because server accessing is very slow, about 1 hour the response returned(Java logged it), but somehow Flex donot recieve this information and triggered fault event:

      ###############################################
      FaultCode: Server.Error.Request
      FaultString:'HTTP request error'
      FaultDetail:'Error:[IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]. URL:/do/DeviceRegisterOperation?CmdType=get'
      ###############################################

      When is 'HTTP request error' occurred? What cause it?

      Other infomation:
      1. By using the same HTTPService object, other interaction with server was OK, but this one is NG which is long time and large quantity.
      2. We tested the timeout case, large return value case. They are all OK, but in other department's tesing, this problem occured. Is there any possiblility of envirnment(such as Broser...) or someother will affect this issue?
      3. HTTPService's propertys, such as resultFormat,concurrency, will they related on this problem?

      Any suggestion on this issue is appreciated.
      Thank you very much!: