Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Perl RPC

by zigster (Hermit)
on Oct 23, 2002 at 09:02 UTC ( [id://207318]=perlquestion: print w/replies, xml ) Need Help??

zigster has asked for the wisdom of the Perl Monks concerning the following question:

Hail fellow monks, it has been a long time ;-) but I return once again seeking wisdom. It has been (to long) since my last node ;-)

I am trying to write RPC code using perl, a quick google later and I find PlRPC, this module seems large and unpleasent so I flip to PM to see if there are any suggestions here. A SuperSearch later and I am none the wiser, there seem to be very few nodes on RPC. What is the gen? Does PlRPC just work so there is nothing to discuss (and obviously I am braindead for failing to get it to work) or is RPC just not widely used in perl?

I have considered SOAP::Lite, and in truth that is probably what I would use but this issue of RPC has made me curious.
--

Zigster

Replies are listed 'Best First'.
Re: Perl RPC
by joe++ (Friar) on Oct 23, 2002 at 09:30 UTC
    I would recommend that you use Soap::Lite. Soap looks like the way to go if you want to be buzzword compliant: interoperability, future proof, multi platfrom... (at least good for your marketing).

    Besides, there are quite a bunch of excellent "proof of concept" implementation documents out on the web. Apart from the obvious, a search at xml.com will give you excellent examples.

    Well, maybe I'm biased towards using XML...

    Update: A quick search revealed a sample chapter Writing SOAP Web Services from the O'reilly book Programming Web Services with SOAP, with a section on "Creating Web Services in Perl with SOAP::Lite". It's good to see how simple the example client/server in Soap::Lite is, compared to other implementations in Java and VBscript...

    Hmm, I'm getting more biased I'm afraid!

    --
    Cheers, Joe
    Do I need a Disclaimer?

Re: Perl RPC
by perrin (Chancellor) on Oct 23, 2002 at 17:33 UTC
    You can use PlRPC, or SOAP, but there is a very widely accepted way of doing RPC with Perl and it's called HTTP. Just write your RPC service as a CGI or mod_perl module and call it with LWP. Instant infrastructure.

      ++. Totally agree.

      This approach has been slightly formalised in REST. Often a lot less painful than SOAP in my opinion.

Re: Perl RPC
by Wonko the sane (Deacon) on Oct 23, 2002 at 16:43 UTC

    You may want to take a look at Frontier Modules,
    Frontier::Daemon and Frontier::Client, available through CPAN.

    Also some good information on implementing it at:

    http://xmlrpc-c.sourceforge.net/xmlrpc-howto/xmlrpc-howto-perl.html

    Best Regards,
    Wonko

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://207318]
Approved by broquaint
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-19 02:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found