Hi All,,
Finally i got the solution
var fooWS:WebService = new WebService();
private function validateWebService() : void
{
fooWS.addEventListener(FaultEvent.FAULT,onWSDLFault);
fooWS.loadWSDL(strWebServiceURI + "?WSDL");
}
private function onWSDLFault(fault:FaultEvent):void
{
/*if the fault detail is that we were unable to load the wsdl, then we know
that there is a problem communiating with the server*/
if(fault.fault.faultDetail.toLowerCase() == "unable to load wsdl"
|| fault.fault.faultString.toLowerCase() == "http requrest error"
|| fault.fault.faultCode.toLowerCase() == "server.error.request")
{
var alert:Alert = Alert.show('The application is unable to communicate with the
web server, please try again. If you continue to experience this problem, ' +
'please contact your system administrator');
}
}
Regards,
________________________________
Krunal Panchal
________________________________
From: Krunal Panchal <[email protected]>
To: Flex Coder <[email protected]>
Sent: Mon, 1 February, 2010 12:47:14
Subject: [flexcoders] Web service network issue
Hi,
I have created application using web service proxy.
I am not able to validate the network connection before making call. Means at
the time of calling the one of the method from web service if the connection is
lost it will raise an fault error.
i am configured my web service using flex wizard.
Thanks in advance.
Regards,
________________________________
Krunal Panchal
Send instant messages to your online friends http://uk.messenger.yahoo.com