because 'args' is typed as an array, shouldn't you have loginManager.makeRemoteCall("logIn","loginRetrieved", [userName, userPassword]) instead of loginManager.makeRemoteCall("logIn","loginRetrieved", userName, userPassword) Philippe
________________________________ From: flexcoders@yahoogroups.com on behalf of mvbaffa Sent: Tue 2/28/2006 13:50 To: flexcoders@yahoogroups.com Subject: [flexcoders] Webservices swapping parameters Hi, everybody I am experiencing a strange problem with webservices. I am using a class, developed by Jeff Tapper to call my webservice. There is a method difined like that: public function makeRemoteCall (methodName:String, eventName:String, ...args:Array):void I have developed a Webservice to authenticate users, that has 2 parameters, username and password, that is called like this: - loginManager.makeRemoteCall("logIn","loginRetrieved", userName, userPassword) Where loginManager is an instance of Jeff's DataManager class, "login" is my service, "loginRetrieved" is the event to be called when the service finishes and username and userPassword are obvious. The problem is that, for some reason, userName and userPassword are, sometimes, swapped when the webservice is called. That is the service receives userName as the password and userPassword as the user name. There are other times that the service is called correctly. It seems that a state is reached that makes the parameters to be swapped. I am sure that before the call the parameters are allways ok. They area swapped when they reach the service. The service is logging the parameters in a text file and they are sometimes really swapped. By the way the Datamanager class seems ok because the service is called and the return reaches the result method. The webservice is .NET service that when called by other .NET application works OK. Can anyone help me !!!! Thanks in advance -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development <http://groups.yahoo.com/gads?t=ms&k=Web+site+design+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=L-4QTvxB_quFDtMyhrQaHQ> Computer software development <http://groups.yahoo.com/gads?t=ms&k=Computer+software+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=lvQjSRfQDfWudJSe1lLjHw> Software design and development <http://groups.yahoo.com/gads?t=ms&k=Software+design+and+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ> Macromedia flex <http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=OO6nPIrz7_EpZI36cYzBjw> Software development best practice <http://groups.yahoo.com/gads?t=ms&k=Software+development+best+practice&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=f89quyyulIDsnABLD6IXIw> ________________________________ YAHOO! GROUPS LINKS * Visit your group "flexcoders <http://groups.yahoo.com/group/flexcoders> " on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> . ________________________________ ------------------------------------------------------------------ **STATEMENT OF CONFIDENTIALITY** This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited. We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus. ------------------------------------------------------------------ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
<<winmail.dat>>