From: Dalibor Andzakovic <Dalibor.Andzako...@swerve.co.nz>
Date: Mon, 6 Jul 2009 08:40:18 +1200
Local: Sun 5 July 2009 21:40
Subject: RE: [phpsoa] multiple rows return ?
One way you could achieve this is:
XSD:
<xsd:complexType name="EmployeeList">
<xsd:complexType name="EmployeeList_T">
PHP
$sth = $this->PDO->prepare("SELECT employeeID, employeeName, employeeAddress FROM EMPLOYEE;");
$employeeList = SCA::createDataObject('your/xsd/namespace', 'EmployeeList');
while($row = $sth->fetch(PDO::FETCH_OBJ)){ }
There is probably a nicer way to merge the resulting row object into the SDO object, but you get the idea.
HTH
dali
-----Original Message-----
From: phpsoa@googlegroups.com [mailto:phpsoa@googlegroups.com] On Behalf Of Alex Sent: Sunday, 5 July 2009 5:08 a.m. To: phpsoa Subject: [phpsoa] multiple rows return ? Hi all,
I have not found any examples that handle multiple rows of data
I have a service that returns multiple rows of result from a database
SELECT employeeID, employeeName, employeeAddress FROM EMPLOYEE;
Say the returned result is
1 | John | One Road
How can I represent that in xsd and how those results are going to put
Thanks in advance for any help.
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||