[flexcoders] Flex 2 not maintaining order of web service parameters.

2006-04-25 Thread ilia_papas



Hello, I've been unable to get Flex to submit parameters to a web
service method in a consistent order. I'm using Flex 2 beta 2 and a
web service running on JBoss 4.0.4CR2 using annotations.

This problem has been described in the following locations:

-Macromedia Forum: Webservice always returns a Error #2032: Stream
Error (http://tinyurl.com/ebyg8)
-flexcoders archive: Flex 2: WebServervice call sometimes swaps
parameters (http://tinyurl.com/ghwmr)
-Macromedia Forum: WebService fields out of order
(http://tinyurl.com/jsdg6)

The order of the parameters appears to be somewhat random, as each
time you refresh the page, the order changes. Though that order will
last until you refesh again.

One suggestion was wrapping the parameters in a single complex object.
However, the problem still persists, as order is not maintained when
flex serializies the object.

Another suggested setting the parameters like so:

 if svc is your webservice id...
 svc.function.arguments = {value1:val1, value2:val2, ...};
 svc.function();

Unfortunately, order is still not mainatained.

Has anyone found a workaround for this?

Thanks,
Ilia










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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












RE: [flexcoders] Flex 2 not maintaining order of web service parameters.

2006-04-25 Thread Jonas Windey



Try reading the comments on this page:
http://jeff.mxdj.com/as3_datamanager.htm

I always pass the arguments in an object, and so far no problems..

var args:Object = new Object();
args.yourParam = first param;

etc.

Good luck

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ilia_papas
Sent: dinsdag 25 april 2006 17:06
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 2 not maintaining order of web service
parameters.

Hello, I've been unable to get Flex to submit parameters to a web
service method in a consistent order. I'm using Flex 2 beta 2 and a
web service running on JBoss 4.0.4CR2 using annotations.

This problem has been described in the following locations:

-Macromedia Forum: Webservice always returns a Error #2032: Stream
Error (http://tinyurl.com/ebyg8)
-flexcoders archive: Flex 2: WebServervice call sometimes swaps
parameters (http://tinyurl.com/ghwmr)
-Macromedia Forum: WebService fields out of order
(http://tinyurl.com/jsdg6)

The order of the parameters appears to be somewhat random, as each
time you refresh the page, the order changes. Though that order will
last until you refesh again.

One suggestion was wrapping the parameters in a single complex object.
However, the problem still persists, as order is not maintained when
flex serializies the object.

Another suggested setting the parameters like so:

 if svc is your webservice id...
 svc.function.arguments = {value1:val1, value2:val2, ...};
 svc.function();

Unfortunately, order is still not mainatained.

Has anyone found a workaround for this?

Thanks,
Ilia






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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Flex 2 not maintaining order of web service parameters.

2006-04-25 Thread Peter Farland



This is a known issue in Beta 2, should be addressed in Beta 3. 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ilia_papas
Sent: Tuesday, April 25, 2006 11:06 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 2 not maintaining order of web service
parameters.

Hello, I've been unable to get Flex to submit parameters to a web
service method in a consistent order. I'm using Flex 2 beta 2 and a web
service running on JBoss 4.0.4CR2 using annotations.

This problem has been described in the following locations:

-Macromedia Forum: Webservice always returns a Error #2032: Stream
Error (http://tinyurl.com/ebyg8) -flexcoders archive: Flex 2:
WebServervice call sometimes swaps parameters (http://tinyurl.com/ghwmr)
-Macromedia Forum: WebService fields out of order
(http://tinyurl.com/jsdg6)

The order of the parameters appears to be somewhat random, as each time
you refresh the page, the order changes. Though that order will last
until you refesh again.

One suggestion was wrapping the parameters in a single complex object.
However, the problem still persists, as order is not maintained when
flex serializies the object.

Another suggested setting the parameters like so:

 if svc is your webservice id...
 svc.function.arguments = {value1:val1, value2:val2, ...};
 svc.function();

Unfortunately, order is still not mainatained.

Has anyone found a workaround for this?

Thanks,
Ilia






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.