The closest I've seen is this post but it's still not quite the right thing.
What I really want is for
soap = SOAP::WSDLDriverFactory.new(WSDL_URL).createDriver
to accept a user/password and do basic authentication for me, but I don't see a way to make it happen.
Leave a comment if you have an idea...