RockyMyx / as3webservice

Automatically exported from code.google.com/p/as3webservice
0 stars 1 forks source link

Fix for passing Arrays to the Webservice #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I was able to get Arrays working when sending to the web service,
originally, no matter what Array I've sent, the code would generate:

<iNumList>
  <int>undefined</int>
</iNumList>

After the fix, the code generates, for input 1,6,99:

<iNumList>
  <int>1</int>
  <int>6</int>
  <int>99</int>
</iNumList>

Here is my fix, it begins at line 148:
                                    for (var z:int = 0; z < curr_arg.length; z++)
{
   oref_node.appendChild(
           <{ws_arg.name}>
                {curr_arg[z]}
           </{ws_arg.name}>
           );
}

Original issue reported on code.google.com by roylazar...@gmail.com on 24 Mar 2010 at 3:39

GoogleCodeExporter commented 9 years ago
in WebServiceCall.as

Original comment by roylazar...@gmail.com on 24 Mar 2010 at 3:41

GoogleCodeExporter commented 9 years ago
Hi, can you check if the fix is still needed? 
The 'z' variable, where does it come from?

Original comment by pieter.m...@gmail.com on 5 Apr 2011 at 11:48