F, [2007-09-19T13:34:21.044000 #2732] FATAL -- app: Detected an
exception. Stopp
ing ... getaddrinfo: no address associated with hostname. (http://
www.amazon.com
:80) (SocketError)
C:/ruby/InstantRails/ruby/lib/ruby/gems/1.8/gems/httpclient-2.1.1/lib/
httpclient
.rb:1414:in `initialize'
I think the reason for this problem is that I am behind a proxy
server. Does someone know, how I can set the proxy server for
wsdl2ruby? I am running Ruby under Windows.
Thanks a lot!
Bernd
Hi,
Burnt wrote:
> I think the reason for this problem is that I am behind a proxy
> server. Does someone know, how I can set the proxy server for
> wsdl2ruby? I am running Ruby under Windows.
- From the error message, it can be a DNS problem as well but it's worth
try to do access via proxy. Set an environment variable 'HTTP_PROXY'.
> set HTTP_PROXY=http://proxy:8080/
> wsdl2ruby.rb ...
Regards,
// NaHi
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
iQEVAwUBRvExHB9L2jg5EEGlAQLBhAf+JeOR+Jkn6lkszIfSsvzZLzzbTWLIPWxZ
izEid2G0M2JRp700t6DLchtG47o1LUjRziGHuYvPSi50tV7WzNE+UWynUrK78k6W
ER8A/donJSY8HH4PspMYnXH9gGJyMmb8mOLXrjbYccVFyHPMtBEKnbSYGD91kfK0
yEi24qQxzOH5sCDdZtfbKtzTYov3Hix+osSzqAOzLv16BmqgHuX+u3OPgNsti7U8
4q9VLEcgVlh4qK+3wkJNQTdhITXi3u1mYZatLnVDH8/J2EVe5ysuXvrvWzCzEV/2
u0fr3Pdr6kk0W+K8MTHFVB/9VibovzKGalE4f19GXFjKi9npMqBT5A==
=uqaM
-----END PGP SIGNATURE-----
ok, I set http_proxy and it did not help. Obviously it is a DNS
problem. soap4r should take the DNS settings from Windows, shouldn't
it?
Is there maybe a Ping to the server executed? From my system I cannot
do Pings. Maybe this is the reason. If it is like that, could you give
me a hint, where it is done, so I can deactivate it?
Thanks a lot!
If not, then you have a networking issue, not a soap4r issue :)
Another approach would be to fetch a local copy of the WSDL file,
using a web browser on a machine that can connect to the endpoint.
>From there, you can run:
$ wsdl2ruby --wsdl <local_filename.wsdl> --type client --force
to generate your bindings.
Dave
$ export http_proxy="<your_proxy_IP:port>"
$ wsdl2ruby.rb ...
or even
$ http_proxy="<your_proxy>" wsdl2ruby.rb ...
D.
On Sep 24, 6:49 pm, Burnt <berndschaeuf...@yahoo.de> wrote: