I want to return a data set (whose results are dynamic as it depends on my input parameters) in a PHP web service, using nuSOAP. How do I register my return type since I do not know how many (and what type of) columns and rows will be resulting from my input query.
I got it working by converting the dataset, i.e. the result of my dynamic query, into a CSV with the first record having the names of the fields and the following records as the actual records. Now I can return the CSV which is always going to be a STRING and then convert it into a table at the front end