macromedia flash flash remoting:
Hi guys,
I have created an application that checks for domain name on the net by
invoking a function from the 'domainChecker.wsdl' file. It basically contains
single-line inputbox, a multiline inputbox and a button that will invoke the
function when clicked. However, whenever I click the button, I'll be given an
error msg as stated:
No Such Service
http://services.xmethods.net/soap/urn:xmethods-DomainChecker.wsdl with function
checkDomain
I've check the DomainChecker.wsdl file and the checkDomain operation is indeed
available. Can any1 tell me wat's going on? Btw, I've provided my codes below.
Feel free to take a look at it and tell me what's wrong. Thanks in advance.
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////
#include "NetServices.as"
function init(){
var gwUrl = "http://localhost/flashremoting/gateway.aspx";
NetServices.setDefaultGatewayURL(gwUrl);
var conn = NetServices.createGatewayConnection();
_root.srv =
conn.getService("
http://services.xmethods.net/soap/urn:xmethods-DomainChecker.ws
dl");
}
res = new Object();
res.onResult = function(result){
_root.output.text = "the domain name is " + result;
}
res.onStatus = function(status){
trace(status.description);
}
checkBtn.onRelease = function(){
_root.srv.checkDomain(res, _root.domainName.text);
}
init();