wsdl2ruby proxy aware?

Discussion in 'Ruby' started by P Rajmohan Banavi-A17190, Aug 27, 2008.

  1. I am behind a proxy and while running wsdl2ruby on Windows XP, I am
    getting the following error. I believe this is because of proxy and I am
    not aware how to make wsdl2ruby to use proxy. Any enviroment variables
    or any settings? The wsdl url I have pasted here is a sample (invalid)
    and I got the below error with a valid url.
    =20
    ruby C:\ruby\bin\wsdl2ruby.rb --wsdl
    http://example.example.com/Service.wsdl
    <http://example.example.com/Service.wsdl> --type client --force

    F, [2008-08-27T19:26:04.647000 #3552] FATAL -- app: Detected an
    exception. Stopping ... getaddrinfo: no address associated with
    hostname. (http://example.example <http://example.example> .com:80)
    (SocketError)
    c:/ruby/lib/ruby/gems/1.8/gems/httpclient-2.1.2/lib/httpclient.rb:1497:i
    n `initialize'
    c:/ruby/lib/ruby/gems/1.8/gems/httpclient-2.1.2/lib/httpclient.rb:1497:i
    n `new'
    c:/ruby/lib/ruby/gems/1.8/gems/httpclient-2.1.2/lib/httpclient.rb:1497:i
    n `create_socket'
    c:/ruby/lib/ruby/gems/1.8/gems/httpclient-2.1.2/lib/httpclient.rb:1455:i
    n `connect'
    c:/ruby/lib/ruby/1.8/timeout.rb:56:in `timeout'
    c:/ruby/lib/ruby/1.8/timeout.rb:76:in `timeout'
    c:/ruby/lib/ruby/gems/1.8/gems/httpclient-2.1.2/lib/httpclient.rb:1454:i
    n `connect'
    c:/ruby/lib/ruby/gems/1.8/gems/httpclient-2.1.2/lib/httpclient.rb:1311:i
    n `query'
    c:/ruby/lib/ruby/gems/1.8/gems/httpclient-2.1.2/lib/httpclient.rb:932:in
    `query'
    c:/ruby/lib/ruby/gems/1.8/gems/httpclient-2.1.2/lib/httpclient.rb:2131:i
    n `do_get_block'
    c:/ruby/lib/ruby/gems/1.8/gems/httpclient-2.1.2/lib/httpclient.rb:1956:i
    n `request'
    c:/ruby/lib/ruby/gems/1.8/gems/httpclient-2.1.2/lib/httpclient.rb:2068:i
    n `prepare_request'
    c:/ruby/lib/ruby/gems/1.8/gems/httpclient-2.1.2/lib/httpclient.rb:1955:i
    n `request'
    c:/ruby/lib/ruby/gems/1.8/gems/httpclient-2.1.2/lib/httpclient.rb:1925:i
    n `get'
    c:/ruby/lib/ruby/gems/1.8/gems/httpclient-2.1.2/lib/httpclient.rb:1891:i
    n `get_content'
    c:/ruby/lib/ruby/gems/1.8/gems/httpclient-2.1.2/lib/httpclient.rb:2050:i
    n `follow_redirect'
    c:/ruby/lib/ruby/gems/1.8/gems/httpclient-2.1.2/lib/httpclient.rb:1890:i
    n `get_content'
    c:/ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/importer.
    rb:73:in `fetch'
    c:/ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/importer.
    rb:36:in `import'
    c:/ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/importer.rb:18:in
    `import'
    c:/ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/soap/wsdl2ruby.rb:2
    06:in `import'
    c:/ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/soap/wsdl2ruby.rb:3
    6:in `run'
    c:/ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/bin/wsdl2ruby.rb:46:in `run'
    c:/ruby/lib/ruby/1.8/logger.rb:659:in `start'
    c:/ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/bin/wsdl2ruby.rb:137
    C:/ruby/bin/wsdl2ruby.rb:16:in `load'
    C:/ruby/bin/wsdl2ruby.rb:16
    I, [2008-08-27T19:26:04.647000 #3552] INFO -- app: End of app. (status:
    -1)
    =20
    Thanks in advance.
    P Rajmohan Banavi-A17190, Aug 27, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ben Giddings

    Problems with soap4r's wsdl2ruby.rb

    Ben Giddings, Jul 14, 2004, in forum: Ruby
    Replies:
    6
    Views:
    278
    NAKAMURA, Hiroshi
    Jul 20, 2004
  2. Jean-Hugues ROBERT
    Replies:
    0
    Views:
    187
    Jean-Hugues ROBERT
    Oct 25, 2004
  3. John Lam
    Replies:
    1
    Views:
    165
    NAKAMURA, Hiroshi
    May 29, 2005
  4. Albert Chou
    Replies:
    0
    Views:
    131
    Albert Chou
    Jun 16, 2005
  5. Luke Galea
    Replies:
    3
    Views:
    287
    SAKURAI Masashi
    Oct 23, 2005
Loading...

Share This Page