The one thing that I see different from the way I execute document-
style WSDL operations is this.
Here is the way I do it:
private var _loginWS:WebService = new mx.rpc.soap.WebService();
// Login user
public function loginUser(email:String, password:String):void
{
_email = email;
_password = password;
// create login object with 'UserID' and 'Password'
properties.
var login:Object = new Object();
// create web service and load WSDL
if (_loginWS.wsdl == null)
{
// define the _loginWS web service, load the wsdl
// and then execute the operation, passing to it
// the above defined login object.
_loginWS.useProxy = false;
_loginWS.LoginOperation.resultFormat = 'e4x';
_loginWS.LoginOperation.addEventListener("result",
loginResultHandler);
_loginWS.addEventListener("fault", loginFaultHandler);
_loginWS.wsdl
= 'https://secure.mydomain.com/crm/resources/wsdl/Login.wsdl';
_loginWS.loadWSDL();
}
login.Email = _email;
login.Password = _password;
_loginWS.LoginOperation(login);
}
Compare the two calls:
Yours:
richiestaNoleggioService.richiestaNoleggio.send(idNoleggio);
Mine:
_loginWS.LoginOperation(login);
Notice that you are using the syntax of
"service.operation.send(object)", while I am leaving off the "send"
portion. Since your message is telling you that you are trying to
access an invalid property or method, it is perhaps looking for
a "send" operation/method in your web service? I would suggest trying
richiestaNoleggioService.richiestaNoleggio(idNoleggio);
Don't know if this will solve your problem, but it's the main
difference I noticed between how you and I are doing it.
R. Grimes