wsdl2ruby through proxy server

1 view
Skip to first unread message

Burnt

unread,
Sep 19, 2007, 7:52:21 AM9/19/07
to soap4r
Hello,
I want to use WSDL2Ruby (with a webservice from Amazon.com).
Unfortunately, when I call the script I get the error,

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

NAKAMURA, Hiroshi

unread,
Sep 19, 2007, 10:24:29 AM9/19/07
to soa...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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-----

Burnt

unread,
Sep 24, 2007, 4:49:19 AM9/24/07
to soap4r
Hi,

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!

Dave

unread,
Sep 24, 2007, 7:57:16 AM9/24/07
to soap4r

Burnt - Can you ping and/or traceroute (or "tracert" if you're on a
windows box) to the remote endpoint?

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

Dave

unread,
Sep 24, 2007, 7:59:09 AM9/24/07
to soap4r

Oh and in terms of setting proxy, on UNIX (e.g. Linux) it's often
"http_proxy" (lower case) for some reason.

$ 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:

Reply all
Reply to author
Forward
0 new messages