Loading ...
Sorry, an error occurred while loading the content.

4396Re: Need help with proxy setting

Expand Messages
  • Edi Goetschel
    Feb 4, 2005
      > You need to pass some parameters that will be passed through to
      > LWP::UserAgent. I think that the syntax is somethning like
      >
      > SOAP::Lite->proxy('http://xxx.com', proxy => {http =>
      > 'your.http.proxy'});

      Both, LWP::UserAgent and SOAP::Lite? As Newbie I'm lost in code...

      I tried this without success:

      #!/path/to/perl -w

      use SOAP::Lite;

      my $s = SOAP::Lite
      -> uri('urn:XXX')
      -> proxy('http://to/the/webService',
      proxy => 'http://my.proxy:80');

      And I tried this:

      #!/path/to/perl -w

      use LWP::UserAgent;
      use SOAP::Lite;

      $ua = new LWP::UserAgent;
      $ua->proxy('http' => 'http://my.proxy:80');

      my $s = SOAP::Lite
      -> uri('urn:XXX')
      -> proxy('http://to/the/webService',
      proxy=>$ua);


      The error message for the second is:

      Not an ARRAY reference at /path/to/LWP/UserAgent.pm

      How have I to construct this?

      Edi
    • Show all 7 messages in this topic