Originally created by: insanity...@gmail.com
Originally owned by: schickwa...@googlemail.com
What steps will reproduce the problem?
1. Get data from mysql within the service:
/**
* Gets the files for the specific version
*
* @param string $v Current version of the application
* @return stringArray array of files
*/
public function GetFilesByVersion($v)
{
$version = ltrim(str_replace(".","",$v));
$query = "SELECT v.Version, d.Name, d.Description, f.Extension FROM Versions v INNER JOIN Downloads d ON d.FK_Version_ID = v.ID INNER JOIN Filetypes f ON d.FK_FileType_ID = f.ID WHERE replace(v.Version,'.','') >= '".$version."'";
$result = mysql_query($query);
while ($row = mysql_fetch_assoc($result))
{
$rows[] = $row;
};
return ($rows);
}
What is the expected output? What do you see instead?
In visual studio i got 3 items in the array with the value "Array", not the entire data
What version of the product are you using? On what operating system?
php-wsdl 2.3, visual studio 2010 and .net 4 (c#)
Please provide any additional information below.
Is it possible to return a multidimensional array (like a result in mysql with more than one row) to c#?
If it's possible, please provide some stuff.
I've already tried it with the complextype:
/**
* @pw_complex RowArray An array of Row
*/
/**
* This is needed to get multidimensional data from the database
*
* @pw_element stringArray A string with a value
* @pw_complex Row Defines an 2 dimensional array
*/
class Row{
public $array=array();
}
and returning it like @return RowArray. But this doesn't work.
Thanks in advance for your help.
(Zur Not können wir auch deutsch reden ;))
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: schickwa...@googlemail.com
Sorry wegen der langen Zeitverzögerung für meine Antwort - ich habe leider die Issue-Benachrichtigungen per Email nicht bekommen und bearbeite gerade alle offenen Issues. Ich werde mir das genauer ansehen und die Hilfe und Demos um ein Beispiel dazu erweitern.
(I'll review the issue and add examples to the help and demo files for working with multidimensional arrays)
Labels: -Type-Defect Type-Other
Owner: schickwa...@googlemail.com
Status: Started
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: insanity...@gmail.com
okay, super! Ich denke das wird einigen anderen auch helfen.
(I suppose that will help others too)
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: RBrixel
Hallo, gibt es bzgl. dem multidimensionalen Array als Rückgabewert etwas neues?
(Hello, is there any update of a multidimensional array as return-value?)