|
Re: nusoap, wsdl, mysql arrays: msg#00050php.nusoap.general
Having no access to your code, I cannot be sure, but my guess is that your server's WSDL does not correctly describe the result from your function. If your SQL is something like "SELECT col1, col2, col3 FROM tab", each array element you return is an associative array like array('col1' => 'val1', 'col2' => 'val2', 'col3' => 'val3') The result is a simple array of such associative arrays. Your WSDL must then define a complexType ("Foo") that represents the associative array above, and another complexType ("ArrayOfFoo") that is an array of such types. The method would then be defined to return the array. Scott Nichol Do not send e-mail directly to this e-mail address, because it is filtered to accept only mail from specific mail lists. ----- Original Message ----- From: "Seth Giammanco" <seth@xxxxxxxxxxxxxxxxxxx> To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> Sent: Wednesday, April 07, 2004 1:28 PM Subject: [Nusoap-general] nusoap, wsdl, mysql arrays nusoap Newb here (used , I've been having a tough time creating a server using wsdl (created with nusoap) to send an array from an mysql db as the result to the client. I followed a tutorial which simply had the result displayed as: $result = mysql_fetch_array($query_result, MYSQL_ASSOC); When accessing the server using this result set I get no result, yet no obvious errors or issues. I could provide more code if needed (I don't have access to it from herebut could reply with more info later ... the issue is killing me so I'm being impatient) though I am curious if someone could tell me if the above returned result should work if all the other code is correct, or if something else needs to be done to return an associative array from a mysql query, or suggest a tutorial or resource that will help me to figure this out on my own ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=ick _______________________________________________ Nusoap-general mailing list Nusoap-general@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/nusoap-general ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Re: abstract type using nusoap causing error: 00050, Scott Nichol |
|---|---|
| Next by Date: | Re: abstract type using noose causing error: 00050, Matthew Sobocinski |
| Previous by Thread: | nusoap, wsdl, mysql arraysi: 00050, Seth Giammanco |
| Next by Thread: | NuSOAP client accepting XML: 00050, Chris Boget |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |