in reply to Dynamically setting a proxy for SOAP::Lite

Make sure that $SOAP_SERVER and $SOAP_PROXY have been loaded from the config file. You are getting errors on certain values that should work, always print out the real values.

The uri and proxy methods for SOAP::Lite should not care if their parameters are literal strings or scalars. This should work fine:

my $uri = $SOAP_SERVER . 'dbAccessor'; my $proxy = $SOAP_PROXY; my $soap = SOAP::Lite->new(); $soap->uri($uri); $soap->proxy($proxy);

BTW, I put in an explicit constructor and removed the chainging. The SOAP::Lite modules uses the style of implicitly constructing objects and chaining them together. This makes it hard to tell when objects get constructed and what object is being used.