Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #11018 > unrolled thread

Looping through Web Service results

Started byBigNate <bignate52@gmail.com>
First post2011-02-04 21:03 -0800
Last post2011-02-05 11:18 +0100
Articles 2 — 2 participants

Back to article view | Back to comp.lang.php


Contents

  Looping through Web Service results BigNate <bignate52@gmail.com> - 2011-02-04 21:03 -0800
    Re: Looping through Web Service results Luuk <Luuk@invalid.lan> - 2011-02-05 11:18 +0100

#11018 — Looping through Web Service results

FromBigNate <bignate52@gmail.com>
Date2011-02-04 21:03 -0800
SubjectLooping through Web Service results
Message-ID<ada8aa89-5b04-424f-bdf6-daa1df265560@glegroupsg2000goo.googlegroups.com>
Hi Folks
I'm having trouble displaying individual values of my SOAP results.  I'm using the code below to connect to the web service:

$client = new SoapClient($urlWSDL);
$result = $client->getVotes($userKey);

I can see that it returns an array, using the dBug script, I can see everything in there, but I can't figure out how to loop through the array to see the individual columns.  I'm used to looping through an array returned from a MySQL result with those functions, so I'm stuck with this one.  Does anyone have any ideas?  Any help would be greatly appreciated.

Thanks,

Nate

[toc] | [next] | [standalone]


#11282

FromLuuk <Luuk@invalid.lan>
Date2011-02-05 11:18 +0100
Message-ID<snkv18-8es.ln1@luuk.invalid.lan>
In reply to#11018
On 05-02-11 06:03, BigNate wrote:
> Hi Folks
> I'm having trouble displaying individual values of my SOAP results.  I'm using the code below to connect to the web service:
> 
> $client = new SoapClient($urlWSDL);
> $result = $client->getVotes($userKey);
> 
> I can see that it returns an array, using the dBug script, I can see everything in there, but I can't figure out how to loop through the array to see the individual columns.  I'm used to looping through an array returned from a MySQL result with those functions, so I'm stuck with this one.  Does anyone have any ideas?  Any help would be greatly appreciated.
> 
> Thanks,
> 
> Nate

http://www.php/net/foreach

Try to create something with the info on that link, and i you get stuck
someone here might point you further on the path, if you show what you
did with that info....

-- 
Luuk

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web