0 Replies Latest reply on Jul 24, 2006 7:43 AM by overtime66

    SOAP problem

    overtime66
      Hi,

      I'm having problems connecting to a SOAP web service.
      The problem is that the flex doesn't seem to load my xsd file (which is imported from the wsdl file).

      I know i should declare the data types under the tag <types>,
      Well under the tag <types> i use xsd:import to an xsd file.

      All data from this xsd file is not loaded

      <types>
      <xsd:schema>
      <xsd:import namespace="URL to namespace" schemaLocation="URL to XSD file"></xsd:import>
      </xsd:schema>
      </types>

      tns:user is defined in the xsd file.

      Flash runtime enviroment throws the following exception:

      [WSDLError faultString="Type tns:user not resolvable" faultCode="WSDL.BadType" faultDetail="null"]
      at mx.rpc.soap::WSDLParser/ http://www.adobe.com/2006/flex/mx/internal::parseMessage()
      at mx.rpc.soap::WSDLOperation/parseMessages()
      at mx.rpc.soap::Operation/ http://www.adobe.com/2006/flex/mx/internal::invokePendingCall()
      at mx.rpc.soap::Operation/ http://www.adobe.com/2006/flex/mx/internal::invokeAllPending()
      at mx.rpc.soap::WebService/::unEnqueueCalls()
      at mx.rpc.soap::WebService/ http://www.adobe.com/2006/flex/mx/internal::wsdlHandler()
      at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.rpc.soap::WSDLParser/dispatchEvent()
      at mx.rpc.soap::WSDLParser/::parseCompleted()
      at mx.rpc.soap::WSDLParser/ http://www.adobe.com/2006/flex/mx/internal::httpResultHandler()
      at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.rpc::AbstractInvoker/ 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/flash.events:EventDispatcher::dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at flash.net::URLLoader/flash.net:URLLoader::onComplete()

      Does anyone know if flex has a limitation regarding loading xsd files?
      or if i'm doing something wrong?