Thanks, Thomas.
I finally got it to work. A couple of things I found out:
If using an https endpoint, it seems that LWP wants the specified protocol to be https. This is different from what I read everywhere which led me to believe that specifying http would cover both http and https.
Also, since I was using a .pm which was built from the wsdl using stubmaker.pl, I needed to go into the pm to add the proxy info, as I was having difficulty accessing the http layer from my script. Not the best approach, but did the trick. I didn't have this issue with another script which is making SOAP calls, but is not dependent on a stubmaker-generated pm.
Thanks again!
Sean

On Mon, Mar 21, 2011 at 8:37 AM, Thomas J. Pinkl <Thomas.Pinkl@sxc.com> wrote:
On 03/20/2011 08:58 AM, Sean Case wrote:
> We have a firewall and the preferred method is to go through a proxy to
> get out. I have tried this:
> $api->transport->proxy(http => $proxy); which yielded: FATAL ERROR::
> proxy: transport protocol not specified
>
> I have also tried other variations (as found at
> http://cookbook.soaplite.com/ and also in the SOAP::Lite PODs) which get
> the same result.
>   Also, I have tried: $ENV{'HTTP_proxy'} = $proxy; which got: FATAL
> ERROR:: 500 Connect failed: connect: Connection refused; Connection
> refused at...
>   so that appears to not even be setting it (our firewall doesn't seem
> to be acknowledging the proxy when I use this). The admins have tested
> out the firewall to check that it will actually pass through to the
> correct endpoints and they can't see the script even hitting the proxy.
> I have been searching around and I haven't found any examples where
> someone has tried this and succeeded, so I'm not sure what the root
> cause is. Any assistance would be greatly appreciated.

SOAP::Lite uses LWP::UserAgent, so its proxy configuration applies.

My SOAP::Lite clients do something like:

|    if ($ENV{http_proxy}) {
|        $soap->proxy($endpoint, $timeout, env_proxy => 1);
|    } else {
|        $soap->proxy($endpoint, $timeout);
|    }

Note that the environment variable name is "http_proxy" (all lower-case)
and not "HTTP_proxy".

--
Thomas J. Pinkl
Senior Systems Architect
Health Business Systems, Inc. (An SXC Company)
738 Louis Drive
Warminster, PA 18974
T: (215) 491-0763
   (800) 444-1427
F: (267) 280-5101
http://www.HBSRx.com/


This communication, including any attachments, may contain information that is confidential and may be privileged and exempt from disclosure under applicable law. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are hereby notified that any use, disclosure, dissemination, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender. Thank you for your cooperation.

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Soaplite-devel mailing list
Soaplite-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/soaplite-devel