0 Replies Latest reply on Mar 24, 2007 11:48 AM by RyoZero

    Webservices

    RyoZero
      I have a small flex application runnig with WSDL services, but only work when my application there on the same path of my services.

      I running services like with ColdFusion like flashremoting.

      I need run my flex application in my local pc, but get information from my remote server, right now not work bot need in the same server.

      WHAT NEED TO DO...? OR WHAT I DO WRONG..?

      Here cfc code...."GATEWAY"

      <cfcomponent>
      <!--- Inicializar el componente --->
      <cffunction name="init" output="false" returntype="any" hint="Inicializar el Objeto" access="public">
      <cfargument name="dns" required="true" type="any">
      <cfset variables.dsn = arguments.dns />
      <cfreturn this />
      </cffunction>

      <!--- Busqueda de todas las categorias --->
      <cffunction name="General" output="false" hint="Validar el Usuario" access="remote" returntype="any">

      <cfargument name="Parametros" required="yes" type="struct" hint="Parametros" />

      <cfset VerUser = createObject("component","mifamiliav2.components." & arguments.Parametros.modulo & "." & arguments.Parametros.metodo) />
      <cfreturn VerUser.Main(argumentCollection=arguments) />

      </cffunction>
      </cfcomponent>

      THIS CFC execute other CFC methods and return arrays Objects, like cfquery....


      This my *.mxml code....

      [Bindable]
      private var WSDL:String = " http://www.remoteserver.com/components/svrAll.cfc?wsdl";



      <mx:WebService id="lestados" useProxy="false" wsdl="{WSDL}" showBusyCursor="true">
      <mx:operation name="General" result="hResults(event)" fault="this._Funciones.ShowError(event.fault.message);"/>
      </mx:WebService>


      BUT WHEN I TRY to access a remote server, showme this error.....

      [RPC Fault faultString="[MessagingError message='Unknown destination 'DefaultHTTP'.']" faultCode="InvokeFailed" faultDetail="Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL ( http://www.imaginsoft.com/MIFAMFLEX/components/svrAll.cfc?wsdl)"
      at mx.rpc.soap::WSDLParser/::dispatchFault()
      at mx.rpc.soap::WSDLParser/ http://www.adobe.com/2006/flex/mx/internal::httpFaultHandler()
      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 Function/ http://adobe.com/AS3/2006/builtin::apply()
      at mx.rpc::AsyncDispatcher/::timerEventHandler()
      at flash.utils::Timer/flash.utils:Timer::_timerDispatch()
      at flash.utils::Timer/flash.utils:Timer::tick()