3 Replies Latest reply on Apr 28, 2009 8:57 PM by sreedharvaddi

    Error while calling HTTPService


      i am getting  [RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"] error while trying to call a htttpservice.

      the following is the code which i am using to call the httpservice. my flex app and the http service which i am trying to call is located on the same server. if i paste the URL in the browser and click enter i was able to retreive the data.

      but when i use the same URL in the flex its not working. i tried using an application called HTTPanalyzer which logs all the http requests

      made by all the applications.but i couldnt find the flex app making any call to the server at all. i.e. its not actually sending request at all.please help me




      <?xml version="1.0" encoding="utf-8"?>
      <mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml">
                  import mx.controls.*;
                  import mx.collections.*;
                  import mx.managers.PopUpManager;
                  import mx.core.Application;
                  import mx.events.*;
                  private function passKeys():void{
                      var params:Object={};

          <mx:HTTPService id="http_createPO" showBusyCursor="true" url="http://xxxx.com/WEBLIB_FX_DOC.SM_FX_PO.FieldFormula.IScript_createPO" result="Application.application.getPO(event)" resultFormat="xml" fault="Alert.show(event.fault.toString())"/>
          <mx:Button x="134" y="68" label="Create PO" id="createPO" click="passKeys()"/>
             <mx:TextInput x="166" y="11" id="bu"  keyUp="autocomplete(this.bu,event)" fontWeight="bold"/>
          <mx:TextInput x="166" y="37" id="poID" text="Next" fontWeight="bold"  maxChars="8"/>