use SOAP::Lite; use SOAP::Lite on_action => sub {sprintf '%s/%s',@_}; $proxy = 'https://proxy.com/2.3'; $uri = 'https://uri.dataservices.training'; $method = 'methodCall'; $soap = SOAP::Lite ->proxy($proxy) ->uri($uri); $soapenv = <<'EOF'; (bunch of header settings here) (bunch of body settings here) EOF $results = $soap->call("$uri/$method",$soapenv);