Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Unable to run SOAP::Lite client through firewall proxy

by Anonymous Monk
on Mar 20, 2011 at 13:44 UTC ( #894342=note: print w/replies, xml ) Need Help??

in reply to Unable to run SOAP::Lite client through firewall proxy

transport->proxy is SOAP specific, its not your internet firewall proxy

What you want is what SOAP::Lite honors, HTTP_Proxy

Since something is going wrong, try getting to the internet with lwp-request (try the various options)

If you can get through your firewall with lwp-request, turn on debugging in soap and try debugging that

  • Comment on Re: Unable to run SOAP::Lite client through firewall proxy

Replies are listed 'Best First'.
Re^2: Unable to run SOAP::Lite client through firewall proxy
by scase (Initiate) on Mar 22, 2011 at 13:28 UTC
    I found the resolution. A couple notes for others: It appears that since I was accessing the service through an https endpoint, I needed to specify the firewall proxy protocol as https. From what I had read previously, I had through that specifying http would cover it. Guess not, perhaps I misunderstood. For one of the scripts, I was using a pm which wrapped the various actions. As such, it was proving difficult to get access to the underlying http/https calls from within my script. I edited the pm _call() sub:
    sub _call { my ($self, $method) = (shift, shift); my $name = UNIVERSAL::isa($method => 'SOAP::Data') ? $method->name + : $method; my %method = %{$methods{$name}}; # added the following line so that we can utilize a proxy to get o +ut through # the firewall $self->proxy($method{endpoint}, proxy => ['https' => 'http://proxy']); $self->proxy($method{endpoint} || Carp::croak "No server address ( +proxy) specified") unless $self->proxy; my @templates = @{$method{parameters}}; ...
    perhaps that was a bit less-than-elegant, but I was under the gun and can use my learnings to build on in the future Thanks!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://894342]
[Discipulus]: too much guns in schools? throw more gun at schools! professors in arms
LanX thinks teachers nowadays need every possible mean to defend against their annoying students.

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2018-02-23 11:35 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (302 votes). Check out past polls.