[FaultEvent fault=[RPC Fault faultString="HTTP request error"

130 views
Skip to first unread message

Gaurav

unread,
Nov 12, 2008, 1:29:09 AM11/12/08
to Flex India Community
Hi All,

I am facing an issue in my flex code while connecting to a java
webservice server to work with webservices.

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


The API server is on the public IP and the my machine is on local
network.

Any help or idea would be greatly appriciated.


-Thanks

Vinod M. Jacob

unread,
Nov 13, 2008, 1:36:53 AM11/13/08
to flex_...@googlegroups.com
Can you paste your sample code....
 
Just write separate faulthandler function to handle the fault event
 
<mx:HTTPService id="request"
         url="yourURL"
         result="showAll(event)"
fault="faultHandle(event);"/>

 

private function faultHandle(event:FaultEvent):void
            {
                Alert.show(event.fault.message, "Error");
            }

import:
mx.rpc.events.FaultEvent 


Reply all
Reply to author
Forward
0 new messages