SOAP::Lite has a lot of tricks up its sleeve. For example, if you're
going to be making a whole bunch of remote function calls, there's an
easier way than sending each one on its way with dispatch_to().
If you initialize the module in your script with ...
use SOAP::Lite +autodispatch =>
uri => 'http://myserver.com/Random'
proxy => 'http://myserver.com/cgi-bin/random.cgi'
... then any time your script calls an undefined method, the call will be
autodispatched via SOAP to the proxy you specify.
There is a lot more to SOAP, and SOAP::Lite, but you're on your way, so
I won't slow you down. For information about error handling techniques,
passing complex information and objects back and forth, and suchlike,
there is a bunch of useful documentation to be found at cookbook.soaplite.com.
If you need ideas or inspiration, XMethods.com has a useful and
entertaining collection of Web services you can check out and use.