Is the .Net service doc-lit or RPC style?  Maybe try setting it to RPC
style?

Matt

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of mvbaffa
Sent: Wednesday, March 01, 2006 4:45 AM
To: [email protected]
Subject: [flexcoders] Re: Webservices swapping parameters

Not really when I call makeRemoteCall the way you sugested the first 
parameter (userName) receives nothing, and the second parameter 
recieves the userName and userPassword separated by comma.

Thanks Philippe

--- In [email protected], "Philippe Maegerman" <[EMAIL PROTECTED]> 
wrote:
>
> 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: [email protected] on behalf of mvbaffa
> Sent: Tue 2/28/2006 13:50
> To: [email protected]
> 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=M
acromedia+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&w
2=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&.s
ig=1pMBCdo3DsJbuU9AEmO1oQ>      
> Macromedia flex <http://groups.yahoo.com/gads?
t=ms&k=Macromedia+flex&w1=Web+site+design+development&w2=Computer+sof
tware+development&w3=Software+design+and+development&w4=Macromedia+fl
ex&w5=Software+development+best+practice&c=5&s=166&.sig=OO6nPIrz7_EpZ
I36cYzBjw>      Software development best practice 
<http://groups.yahoo.com/gads?
t=ms&k=Software+development+best+practice&w1=Web+site+design+developm
ent&w2=Computer+software+development&w3=Software+design+and+developme
nt&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:flexcoders-
[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



 




--
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/
 



Reply via email to