in reply to SOAP::Lite, WSDL , and firewall

To specify a proxy and port, I'd do something like this:
#!/usr/bin/perl use strict; use warnings; use SOAP::Lite; print SOAP::Lite -> uri('http://www.soaplite.com/Demo') -> proxy('http://services.soaplite.com/hibye.cgi') -> hi() -> result; my $soap = SOAP::Lite->proxy( 'http://user:password@endpoint.server:80/', proxy => ['http' => 'http://my.proxy.server/']);

Replies are listed 'Best First'.
Re^2: SOAP::Lite, WSDL , and firewall
by perlTM (Initiate) on May 23, 2010 at 09:03 UTC
    and, in addition, do you think that

    my $soap = SOAP::Lite->service( 'http://user:password@endpoint.some.server:80/wsdl',
    proxy => 'http' => 'http://my.proxy.server/' );


    would work ?
      No, it won't work because you're mixing the service proxy and your local server proxy together. Maybe you could post some code to show us how you're using your service?
Re^2: SOAP::Lite, WSDL , and firewall
by perlTM (Initiate) on May 23, 2010 at 08:56 UTC
    Hi Khen1950fx,

    this kind of client (->proxy() ->uri() ) I already found in the plenty descriptions in the web.

    The point is to use an WSDL (by ->service(http://*.wsdl) ) and to use at the same time an object that specifies a proxy server AT MY OWN SIDE, eventually an own port, too.

    Kind regs
      o use at the same time an object that specifies a proxy server AT MY OWN SIDE, eventually an own port, too.

      Are you talking about a local proxy which provides you with an internet connection? For that just set enviromental variable HTTP_Proxy

      3231: $self->useragent->env_proxy if $ENV{'HTTP_proxy'};