[flexcoders] Re: Flex2B2 - bug? problem when calling a webservice method with a string[] arg

2006-04-11 Thread bhaq1972
You're correct! Thanks Ben. this is not a bug. my mistake.


--- In flexcoders@yahoogroups.com, ben.clinkinbeard 
[EMAIL PROTECTED] wrote:

 call.send([array1]);
 
 should be
 
 call.send(array1);
 
 The square brackets mean you are sending a one element array that
 contains array1.
 
 
 --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote:
 
  When i call a .net webservice service method that looks like this
  
  public string myWebMethod(string[] array1)
  {
  }
  
  in flex 1.5 i had no problems but in flex 2 the array argument 
is 
  being received as a fused string (where all the string args are 
  concatenated).
  
  flex1.5 code
  
  var array1:Array = new Array();
  array1.push(1);
  array1.push(2);
  array1.push(3);
  var call = webservice1.myWebMethod(array1);
  
  flex2 code
  
  var array1:Array = new Array();
  array1.push(1);
  array1.push(2);
  array1.push(3);
  var call:mx.rpc.AbstractOperation = webservice1[myWebMethod];
  call.send([array1]);
 








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





[flexcoders] Re: Flex2B2 - bug? problem when calling a webservice method with a string[] arg

2006-04-10 Thread ben.clinkinbeard
call.send([array1]);

should be

call.send(array1);

The square brackets mean you are sending a one element array that
contains array1.


--- In flexcoders@yahoogroups.com, bhaq1972 [EMAIL PROTECTED] wrote:

 When i call a .net webservice service method that looks like this
 
 public string myWebMethod(string[] array1)
 {
 }
 
 in flex 1.5 i had no problems but in flex 2 the array argument is 
 being received as a fused string (where all the string args are 
 concatenated).
 
 flex1.5 code
 
 var array1:Array = new Array();
 array1.push(1);
 array1.push(2);
 array1.push(3);
 var call = webservice1.myWebMethod(array1);
 
 flex2 code
 
 var array1:Array = new Array();
 array1.push(1);
 array1.push(2);
 array1.push(3);
 var call:mx.rpc.AbstractOperation = webservice1[myWebMethod];
 call.send([array1]);











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