9 Replies Latest reply on Aug 28, 2009 7:47 AM by Phoenix_Guru

    WebService "Unable to load WSDL" error

      I need some help with this strange problem

      I have a web service that i call from Flex 3
      <mx:WebService id="dataTowns" wsdl=" http://localhost:2008/SqlData.asmx?WSDL"
      result="objectTowns(event)" fault="faultHandler(event)" showBusyCursor="true"/>

      Not every time but 40% of the time i would get an error. Web services are running on my local machine and i run web service using Visual Studio 2005. Funny thing is that even if i get this error data still loads in flex. So when i run application from flex i sometime get an error and some time i don't and works fine. Some times after the error i restart the webservices and works fine again. I run Windows Vista i don't know if that has anything to do with this.
      Here is the error :

      [RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL ( http://localhost:2008/SqlData.asmx?WSDL)"
      at mx.rpc.wsdl::WSDLLoader/faultHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\ws dl\WSDLLoader.as:98]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.rpc::AbstractInvoker/ http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[E:\dev\3.0.x\frameworks\pro jects\rpc\src\mx\rpc\AbstractInvoker.as:168
      at mx.rpc::AbstractInvoker/ http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\dev\3.0.x\frameworks\project s\rpc\src\mx\rpc\AbstractInvoker.as:220
      at mx.rpc::Responder/fault()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\Responder.as:49 ]
      at mx.rpc::AsyncRequest/fault()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AsyncRequest .as:103]
      at DirectHTTPMessageResponder/errorHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\mes saging\channels\DirectHTTPChannel.as:343]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at flash.net::URLLoader/redirectEvent()


      Thank you