Hola, estoy haciendo una aplicación con Flash Media Server 2 que consume un webservice para realizar un login.

Busque un ejemplo por ahi y lo hice, pero me tira un error muy raro:

"Unable to connect to endpoint: undefined"

El ejemplo es:

Código :

// load necessary files (the docs don't tell you this...)
load("webservices/WebServices.asc");

application.onAppStart = function() {
   // set up our webservice URL. This service returns an exchange rate between 2 countries    
var wsdlURI = "http://www.freewebs.com/jimmy_cheng/CurrencyExchangeService.wsdl ";
   
   // create the service    rateService = new WebService(wsdlURI);
   
   // Handle the WSDL loading event.    rateService.onLoad = function(wsdl){
      trace("--- onLoad");
      trace(wsdl);
      trace("--- end onLoad");
   }
   
   // If the WSDL fails to load the onFault event is fired.    rateService.onFault = function(fault){
      trace("--- rateService onFault");
      trace( fault.faultstring );
      trace("--- end rateService onFault");
   }
   
   // This invokes the remote method 'getRate' an asynchronous callback.    // We use 'UK' and 'USA' as the 2 countries to query.    callback = rateService.getRate("UK", "USA");
   
   // Handle a successful result. This is the important bit :-)    callback.onResult = function(result) {
      trace("--- Result");
      trace( "Result. The Exchange Rate is: " + result);
      trace( "1 Pound Sterling will today buy you " + result + " US Dollar.");
      trace("--- end Result");
   }
   // Handle an error result.    callback.onFault = function(fault){
      trace("--- callback onFault");
      trace( fault.faultstring );
      trace("--- end callback onFault");
   }
}


el WSDL lo carga bien, pero al momento de ejecutar la operacion getRate tira ese error.....

alguien sabe que puede ser ? o hizo algo con webservices como para darme algun otro ejemplo que sepan que funciona ?

puede ser por problemas de version de SOAP ?

bueno, no tengo idea, asique cualquier cosa que se les ocurra se los agradezco !!!

saludos !!