[Soap-Python] Contect-Type encoding

Luca Dariz luca.dariz at unife.it
Thu Jul 29 10:26:04 CEST 2010


>if you can share a small ruby snippet that demonstrates the problem
>against the interopd.py, that'd be much better btw.
>
>thanks.
>burak

Hello burak, thanks for the quick answer.

Here is a simple client that shows the same traceback:

#!/usr/bin/ruby

class InteropTest
   require 'soap/rpc/driver'
   def initialize()
     ws_url='http://127.0.0.1:9753/'
     ws_ns='InteropService.InteropService'
     @conn = SOAP::RPC::Driver.new(ws_url, ws_ns)
   end
   def echo_int(i)
     @conn.add_method("echo_integer", "i")
     @conn.echo_integer(i)
   end
   def echo_string(s)
     @conn.add_method("echo_string", "s")
     @conn.echo_string(s)
   end
end

ws = InteropTest.new()

puts ws.echo_string("OK")
puts ws.echo_int(0)

I have tried it on both ruby 1.8.7 and 1.8.6.

Thanks,
Luca





More information about the Soap mailing list