Debug mode fails with socket exception

13 views
Skip to first unread message

c.dif...@gmail.com

unread,
Aug 31, 2007, 11:05:56 AM8/31/07
to soap4r
Hello,

I am running into a problem with soap4r when using the Ruby debug
mode.

My code appearss to run fine when not in Debug mode, but I get a low-
level exception when trying to do a wire dump of the SOAP.

Here are the first lines of my SOAP client, as generated by wsdl2ruby

require 'rubygems'
gem 'soap4r'
require 'defaultDriver.rb'
endpoint_url = ARGV.shift
obj = NetSuitePortType.new(endpoint_url)

# run ruby with -d to see SOAP wiredumps.
obj.wiredump_dev = STDERR if $DEBUG

When I run the client with the ruby -d option, I get a stack trace
that looks like...

/usr/local/lib/ruby/gems/1.8/gems/httpclient-2.1.1/lib/httpclient.rb:
1036:in `initialize': wrong argument type HTTPClient::DebugSocket
(expected File) (TypeError)
from /usr/local/lib/ruby/gems/1.8/gems/httpclient-2.1.1/lib/
httpclient.rb:1036:in `new'
from /usr/local/lib/ruby/gems/1.8/gems/httpclient-2.1.1/lib/
httpclient.rb:1036:in `create_ssl_socket'
from /usr/local/lib/ruby/gems/1.8/gems/httpclient-2.1.1/lib/
httpclient.rb:950:in `initialize'
from /usr/local/lib/ruby/gems/1.8/gems/httpclient-2.1.1/lib/
httpclient.rb:1432:in `new'
from /usr/local/lib/ruby/gems/1.8/gems/httpclient-2.1.1/lib/
httpclient.rb:1432:in `create_ssl_socket'
from /usr/local/lib/ruby/gems/1.8/gems/httpclient-2.1.1/lib/
httpclient.rb:1381:in `connect'
from /usr/local/lib/ruby/1.8/timeout.rb:56:in `timeout'
from /usr/local/lib/ruby/1.8/timeout.rb:76:in `timeout'
... 11 levels...
from /usr/local/lib/ruby/gems/1.8/gems/soap4r-1.5.7/lib/soap/
rpc/proxy.rb:142:in `call'
from /usr/local/lib/ruby/gems/1.8/gems/soap4r-1.5.7/lib/soap/
rpc/driver.rb:180:in `call'
from (eval):6:in `login'
from NetSuiteServiceClient.rb:29

Do you have any idea what might be causing this?

Thank you!

NAKAMURA, Hiroshi

unread,
Aug 31, 2007, 11:09:52 AM8/31/07
to soa...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

c.dif...@gmail.com wrote:
> I am running into a problem with soap4r when using the Ruby debug
> mode.

Sorry for the inconvenience. It's a bug of httpclient/2.1.1. I've just
posted the latest snapshot of httpclient today.
http://dev.ctor.org/http-access2/ticket/168

Would you please update httpclient gem and see how it goes?

Regards,
// NaHi
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)

iQEVAwUBRtgvPx9L2jg5EEGlAQIKaggAqL9TkKMWuXGGPWZVCDfl12zMVH8AmKL0
t9Oo0NcUji91t73sf3XW22oj/+31g3n4FsS4XOxj5YSAHYjNCc82Qp0Wz2bQlRB9
/m3yUftm7Ui9XIEtR/7wu4EceiQfyZ5fUJfpjg2qGYzZRBQXSUDr2nz3JN+X3wuq
vOplHfuvBjZprEhjBvfWB28fzZ8eb1JKiwU9Phc2G4+c9Y9rOW4TnZ21V3117oDd
dVcQ//rGoKUtN4vqPxii3JggfRVy8qjrNsIJNmYOTrlrwti13SJihL2e/mJR/+bX
RapJBPoOnZeOFBmK7AOgzQd5/4dP544P+U8/HWJw3xQWzcs6ga2myw==
=h8KR
-----END PGP SIGNATURE-----

dbeeson

unread,
Aug 31, 2007, 11:24:05 AM8/31/07
to soap4r
It works! Thank you for your prompt response.


On Aug 31, 11:09 am, "NAKAMURA, Hiroshi" <nakah...@sarion.co.jp>
wrote:


> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>

> c.diffic...@gmail.com wrote:
> > I am running into a problem with soap4r when using the Ruby debug
> > mode.
>
> Sorry for the inconvenience. It's a bug of httpclient/2.1.1. I've just

> posted the latest snapshot of httpclient today.http://dev.ctor.org/http-access2/ticket/168

Reply all
Reply to author
Forward
0 new messages