Why would this not work as expected on a Fedora Core 5 box? I get this
error:
/usr/lib/ruby/1.8/net/http.rb:562:in `initialize': Connection refused
- connect(2) (Errno::ECONNREFUSED)
from /usr/lib/ruby/1.8/net/http.rb:562:in `connect'
from /usr/lib/ruby/1.8/timeout.rb:48:in `timeout'
from /usr/lib/ruby/1.8/timeout.rb:76:in `timeout'
from /usr/lib/ruby/1.8/net/http.rb:562:in `connect'
from /usr/lib/ruby/1.8/net/http.rb:555:in `do_start'
from /usr/lib/ruby/1.8/net/http.rb:544:in `start'
from /usr/lib/ruby/1.8/soap/netHttpClient.rb:115:in `start'
from /usr/lib/ruby/1.8/soap/netHttpClient.rb:92:in `post'
from /usr/lib/ruby/1.8/soap/streamHandler.rb:170:in
`send_post'
from /usr/lib/ruby/1.8/soap/streamHandler.rb:109:in `send'
from /usr/lib/ruby/1.8/soap/rpc/proxy.rb:170:in `route'
from /usr/lib/ruby/1.8/soap/rpc/proxy.rb:141:in `call'
from /usr/lib/ruby/1.8/soap/rpc/driver.rb:178:in `call'
from /usr/lib/ruby/1.8/soap/rpc/driver.rb:232:in `getQuote'
from soap_test.rb:17
Its so basic. And yet it seems like there is no one other than myself
getting this error. At least I can't find a single peep from anything
on Google.
Why would this not work as expected on a Fedora Core 5 box? I get this
error:
/usr/lib/ruby/1.8/net/http.rb:562:in `initialize': Connection refused
- connect(2) (Errno::ECONNREFUSED)
from /usr/lib/ruby/1.8/net/http.rb:562:in `connect'
from /usr/lib/ruby/1.8/timeout.rb:48:in `timeout'
from /usr/lib/ruby/1.8/timeout.rb:76:in `timeout'
from /usr/lib/ruby/1.8/net/http.rb:562:in `connect'
from /usr/lib/ruby/1.8/net/http.rb:555:in `do_start'
from /usr/lib/ruby/1.8/net/http.rb:544:in `start'
from /usr/lib/ruby/1.8/soap/netHttpClient.rb:115:in `start'
from /usr/lib/ruby/1.8/soap/netHttpClient.rb:92:in `post'
from /usr/lib/ruby/1.8/soap/streamHandler.rb:170:in
`send_post'
from /usr/lib/ruby/1.8/soap/streamHandler.rb:109:in `send'
from /usr/lib/ruby/1.8/soap/rpc/proxy.rb:170:in `route'
from /usr/lib/ruby/1.8/soap/rpc/proxy.rb:141:in `call'
from /usr/lib/ruby/1.8/soap/rpc/driver.rb:178:in `call'
from /usr/lib/ruby/1.8/soap/rpc/driver.rb:232:in `getQuote'
from soap_test.rb:17
Its so basic. And yet it seems like there is no one other than myself
getting this error. At least I can't find a single peep from anything
on Google.
Read the error message you posted. Your connection is refused in the first place.
Thanks I just tested on another machine at home and found that you are
right. It works fine. Its the firewall at work thats causing the
problems. The thing that confused me was the non-wsdl version works
fine. If I do it like this it will work fine behind our work firewall
···
On Apr 19, 4:55 pm, Phillip Gawlowski <cmdjackr...@googlemail.com> wrote:
bluengreen wrote:
> Hello,
> I spent hours trying to find a solution to why some basic code that
> was actually pulled directly from page 630 of the O'Reilly Ruby
> Cookboook.
> Why would this not work as expected on a Fedora Core 5 box? I get this
> error:
> /usr/lib/ruby/1.8/net/http.rb:562:in `initialize': Connection refused
> - connect(2) (Errno::ECONNREFUSED)
> from /usr/lib/ruby/1.8/net/http.rb:562:in `connect'
> from /usr/lib/ruby/1.8/timeout.rb:48:in `timeout'
> from /usr/lib/ruby/1.8/timeout.rb:76:in `timeout'
> from /usr/lib/ruby/1.8/net/http.rb:562:in `connect'
> from /usr/lib/ruby/1.8/net/http.rb:555:in `do_start'
> from /usr/lib/ruby/1.8/net/http.rb:544:in `start'
> from /usr/lib/ruby/1.8/soap/netHttpClient.rb:115:in `start'
> from /usr/lib/ruby/1.8/soap/netHttpClient.rb:92:in `post'
> from /usr/lib/ruby/1.8/soap/streamHandler.rb:170:in
> `send_post'
> from /usr/lib/ruby/1.8/soap/streamHandler.rb:109:in `send'
> from /usr/lib/ruby/1.8/soap/rpc/proxy.rb:170:in `route'
> from /usr/lib/ruby/1.8/soap/rpc/proxy.rb:141:in `call'
> from /usr/lib/ruby/1.8/soap/rpc/driver.rb:178:in `call'
> from /usr/lib/ruby/1.8/soap/rpc/driver.rb:232:in `getQuote'
> from soap_test.rb:17
> Its so basic. And yet it seems like there is no one other than myself
> getting this error. At least I can't find a single peep from anything
> on Google.
Read the error message you posted. Your connection is refused in the
first place.