简体   繁体   中英

How can I return a dataset (which is dependent on my input query) in a PHP web service using nuSOAP?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM