[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Proxy question when using soap/wsdlDriver

Jared Richardson

3/23/2006 3:36:00 PM

Hi all,

I'm going through the Brian Marick web services article
(http://www.testing.com/writings/behind-the-s...), but at my day job
I'm behind a proxy/firewall.

To run a Ruby gem I have to do something like this

gem install -p http://proxy_... rails

but I'm having a bit of trouble finding the equivalent for the soap code.
I'm trying to run within IRB but can switch over to "real" Ruby code in a
file if it makes it easier.

specifically, I'm trying to run this code:

require "soap/wsdlDriver"
wsdl = "http://api.google.com/GoogleSearch....
factory = SOAP::WSDLDriverFactory.new(wsdl)

At this point, the factory can't create the factory because it can't "see"
outside the web proxy. I can download the wsdl file (via a web browser) and
save it, but then I won't be able to actually exercise the web service.

So how do I tell Ruby (or IRB or the soap code) to use a proxy?

Thanks all!

Jared


1 Answer

dishmael

3/23/2006 3:58:00 PM

0

I had a similar problem and ended up setting an env variable:

http_proxy=http://URL:PORT


The SOAP connection worked after that, but mileage will vary.

-Dave

-----Original Message-----
From: Jared Richardson [mailto:jared.RMOVE_THS_richardson@sas.com]
Sent: Thursday, March 23, 2006 10:49 AM
To: ruby-talk ML
Subject: Proxy question when using soap/wsdlDriver

Hi all,

I'm going through the Brian Marick web services article
(http://www.testing.com/writings/behind-the-s...), but at my day job
I'm behind a proxy/firewall.

To run a Ruby gem I have to do something like this

gem install -p http://proxy_... rails

but I'm having a bit of trouble finding the equivalent for the soap code.
I'm trying to run within IRB but can switch over to "real" Ruby code in a
file if it makes it easier.

specifically, I'm trying to run this code:

require "soap/wsdlDriver"
wsdl = "http://api.google.com/GoogleSearch....
factory = SOAP::WSDLDriverFactory.new(wsdl)

At this point, the factory can't create the factory because it can't "see"
outside the web proxy. I can download the wsdl file (via a web browser) and
save it, but then I won't be able to actually exercise the web service.

So how do I tell Ruby (or IRB or the soap code) to use a proxy?

Thanks all!

Jared