in reply to Dynamically setting a proxy for SOAP::Lite
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.
|
|---|