2 Replies Latest reply on Jul 20, 2011 4:43 AM by lmorgan44

    ReferenceError: Error #1065: Variable @namespace is not defined.

    yu2009

      I am using FB4 but SDK 3.5.  I created a webservice to call a webservice by .Net.  The related codes are listed below

       

      <mx:WebService id="ws"   wsdl="{URL_WSDL2}" fault="wsHandleFault(event)"  useProxy="false"  >
        <mx:operation name="GetDistrict"
         resultFormat="object"
         result="GetDistrict(event)" />
        <mx:operation name="GetStates"
         resultFormat="object"
         result="GetStates(event)" />
      </mx:WebService>

       

      private function LoadData():void {;
        ws.getOperation("GetDistrict").send();
        ws.getOperation("GetStates").send();
        btnLoad.enabled = false;
      }

       

      However, I got runtime error:

      ReferenceError: Error #1065: Variable @namespace is not defined.

      at mx.rpc.xml::SchemaLoader/schemaImports()

      at mx.rpc.wsdl::WSDLLoader/schemaImports()

      at mx.rpc.wsdl::WSDLLoader/resultHandler()

      at flash.events::EventDispatcher/dispatchEventFunction()

      at flash.events::EventDispatcher/dispatchEvent()

      at HTTPOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()

      at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()

      at mx.rpc::Responder/result()

      at mx.rpc::AsyncRequest/acknowledge()

      at DirectHTTPMessageResponder/completeHandler()

      at flash.events::EventDispatcher/dispatchEventFunction()

      at flash.events::EventDispatcher/dispatchEvent()

      at flash.net::URLLoader/onComplete()

       

      I really don't know how to fix it.  Wish someone can share his/her experience.  Thanks.