Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: How to access elements that SOAP::Lite Returns

by Anonymous Monk
on Dec 01, 2006 at 02:38 UTC ( #587102=note: print w/replies, xml ) Need Help??


in reply to Re: How to access elements that SOAP::Lite Returns
in thread How to access elements that SOAP::Lite Returns

Thanks, That was really helpful. The choices SOAP::Lite makes for the data structure seem entirely random (Hash or Array?!!) and unpredictable to me, so I just chose to get XML and parse it this way. It works for now. I'm open to more elegant solutions, but it works.
foreach my $campaign (@{$output->{'SOAP-ENV:Body'}->{APIResponse}->{ClickFraudReport}-> +{Campaigns}->{Campaign}} ) { print "\n\n"; print " Campaign: $campaign->{Name}\n"; print " Cost: $campaign->{Cost}\n"; ...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://587102]
help
Chatterbox?
[LanX]: fun, last time I was in Britain people had problems with my name, just rarely they said "like the children TV star Rolf Harris?", this time most replied instantly "Rolf? like the pedophile Rolf Harris" ?
LanX is perlophile
[ambrus]: Corion: read https://metacpan. org/pod/release/ MLEHMANN/AnyEvent- 7.13/lib/AnyEvent. pm#SUPPLYING-YOUR- OWN-EVENT-MODEL- INTERFACE in that case

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2016-12-08 12:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (141 votes). Check out past polls.