Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

rjray (1649)

  (email not shown publicly)
AOL IM: rjrayperl (Add Buddy, Send Message)
Yahoo! ID: rjray_perl (Add User, Send Message)

Journal of rjray (1649)

Wednesday May 15, 2002
01:40 AM

Blowout Sale! Usable Interfaces @ Full Price!

[ #4930 ]

As part of the work for the web services book, I've been writing some slightly-larger examples of working with SOAP servers, specifically using SOAP::Lite. Last night, I was delighted when the stuff I had written worked like a charm with the server running from one xterm, and the client on a second (but on the same host). So tonight, I rsync'd files over to a separate machine, and (after a few embarassing typos) of course it works like a charm. It's easy to forget how convenient and time-saving a good, clear interface can be. I don't mean SOAP in general, I mean SOAP::Lite in particular.

It's easy to forget because we easily become accustomed to using software that is in perpetual alpha, or barely into beta. Look at Red Hat Linux, and how many of the packages have version numbers that start with zero. It's not a fault on the part of Red Hat-- if they want to offer packages like pan, PyGTK, ORBit, etc., they have to use what they can get. Relying on open source means relying on open source authors, and that means that sometimes even an "old standby" like talk has a version of 0.17.

So, kudos to a clean, stable interface, even at the ripe young age of 0.55. What's more, I was able to launch the server with a one-line. A fully-functional SOAP server in just:

perl -MWishListCustomer -MSOAP::Transport::HTTP -e \
'SOAP::Transport::HTTP::Daemon->new(LocalAddr => myhost => \
LocalPort => 9000)->dispatch_with({ "urn:WLC-test" => "WishListCustomer" \

More things should be that clear and simple.


Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so. -- Douglas Adams

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • ... that your four liner was far from clear :-)


    • It's definitely not clear. But it is idiomatic, which is more important. And it's simple, which is also important. In other words, it's something you can learn to do just once and then apply easily over and over.
    • ... that your four liner was far from clear :-)

      Hmph. Perhaps clearER than it would have been had I not put in the line-breaks for readability and let <ecode> cause your browser to scroll off to the right.

      Everyone's a critic. Err, wait, I guess you're my editor, not my critic...