Groups | Blog | Home
all groups > flash data integration > february 2006 >

flash data integration : Web Service problems


sdmah
2/9/2006 12:00:00 AM
I know this is posted some times, but i cant seem to find the right solution.

I always get the error : Error opening URL
"http://localhost/getTime/Service1.asmx"
and : Unable to connect to endpoint: http://localhost/getTime/Service1.asmx
He seems to load the webservice, but the moment i call the webservice for data
i get these errors, can someone help me here?

Here's my code:

import mx.services.WebService;
//
my_webService = new WebService("http://localhost/service/Service1.asmx?wsdl");
my_webService.onLoad = function(msg) {
trace("WS-Loaded");
};
my_webService.onFault = function(fault) {
trace("ERROR WS");
trace(fault.faultstring);
};
callback1 = my_webService.HelloWorld();
callback1.onResult = function(result) {
trace("RESULT:" + result);

};
callback1.onFault = function(fault) {
trace("ERROR CB");
trace(fault.faultcode);
trace(fault.faultstring);
trace(fault.detail);
trace(fault.element);
trace(fault.faultactor);
};
GOusable
2/11/2006 12:00:00 AM
Well, can you acces web service with say, browser?

Are you sure it outputs the valid wdsl (or at least anything)?

AddThis Social Bookmark Button