You should take a look at the
Writing a SOAP client chapter in the SOAP::Lite docs.
When you create the SOAP::Lite object you include the server name, then use call and return methods to send and retrieve from the server.
print "Good ",("night","morning", "afternoon", "evening")[int((localtime)[2]/6)]," fellow monks.";