Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Using REST in perl to access webservices

by renodino (Curate)
on May 26, 2007 at 23:40 UTC ( #617705=note: print w/replies, xml ) Need Help??

in reply to Using REST in perl to access webservices

Keep in mind that REST's 2nd most important feature is its catchy acronym, (Its most important feature being its beautiful simplicity).

You may be able to proceed with LWP::Simple calls (assuming stateless operations). LWP::Simple::Post may be needed *if* you know the right parameters, but I've had marginal luck getting the latter to function, so YMMV.

If you need to PUT or DELETE, you'll have to dig into LWP::UserAgent and HTTP::Request.

And once you've gotten your response to any of the above, you'll need a suitably capable XML processor...if you're lucky, just XML::Simple (if you're really lucky, just some crafty regexen).

FWIW: DBD::Amazon is REST based and, by far, that was the easiest part of the package development. I'm always amazed at the BFD that is made over SOAP interfaces. I guess the Java/Web Services crowd can't abide a solution that's less then a KLOC.

Go REST, young man, go REST!

Perl Contrarian & SQL fanboy
  • Comment on Re: Using REST in perl to access webservices

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://617705]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2018-01-17 01:25 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (194 votes). Check out past polls.