3 Replies Latest reply on Sep 21, 2010 10:38 AM by yu2009

    WebService invocation - variable @namespace errro

    RBKB
      Hi,

      I am getting the below error. (Variable @namespace is not defined)

      I do not know webservices, I am just trying to access a WSDL file from
      flex. Can you please let me know why Flex shows this error? On which
      element is it expecting a namespace. The WSDL file I am using already
      has a targetNamespace.

      Even if I do not call any methods from the webservice, I get this error.

      Even if I do only following it give me error. i.e it is probably
      tyring to invoke the webservice and check it.

      <mx:WebService id="webService" wsdl=" http://someurl?wsdl">
      <mx:operation name="getData"
      result="resultHandler(event);"
      fault="mx.controls.Alert.show(event.fault.faultString);" />
      </mx:WebService>
      Thanks in advance.

      Regards,
      Neha


      ReferenceError: Error #1065: Variable @namespace is not defined.
      at
      mx.rpc.xml::SchemaLoader/schemaImports()[E:\dev\3.0.x\frameworks\projects\rpc\sr\
      \
      c\mx\rpc\xml\SchemaLoader.as:102]
      at
      mx.rpc.wsdl::WSDLLoader/schemaImports()[E:\dev\3.0.x\frameworks\projects\rpc\src\
      \
      \mx\rpc\wsdl\WSDLLoader.as:253]
      at
      mx.rpc.wsdl::WSDLLoader/resultHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\
      \
      \mx\rpc\wsdl\WSDLLoader.as:162]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at
      mx.rpc::AbstractInvoker/ http://www.adobe.com/2006/flex/mx/internal::dispatchRpcE\
      \
      vent()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:168]
      at
      mx.rpc::AbstractInvoker/ http://www.adobe.com/2006/flex/mx/internal::resultHandle\
      \
      r()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:191]
      at
      mx.rpc::Responder/result()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\Respo\
      \
      nder.as:41]
      at
      mx.rpc::AsyncRequest/acknowledge()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\r\
      \
      pc\AsyncRequest.as:74]
      at
      DirectHTTPMessageResponder/completeHandler()[E:\dev\3.0.x\frameworks\projects\rp\
      \
      c\src\mx\messaging\channels\DirectHTTPChannel.as:381]