running wsdl2ruby server/client as https

13 views
Skip to first unread message

leveret

unread,
Jun 19, 2008, 6:13:26 AM6/19/08
to soap4r
Is it possible to run a StandaloneServer over HTTPS?

I have generated a server and client from a wsdl using wsdl2ruby from
the SOAP4R gem, and have got them working successfully over regular
http.

Is it possible to set these up (SOAP::RPC::StandaloneServer and
SOAP::RPC::Driver respectively) to run as an https server and client?

I ultimately need to set up mutual authentication, but it's the server
side I have no idea about.

There is an ancient post about SSL with SOAP4R here:
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/108292
...but the example uses a webbrick HTTPServer, and not the
StandaloneServer generated by wsdl2ruby.

Also, the previous post on that thread says:
"Are you asking ifthe SOAP::StandAlone server can handle https
requests?
That would have to be WEBrick acting as a ssl server."
...but doesn't expand on this.

Is any of this documented anywhere?

Very greatful for any help- I'm all googled out.

(cross-posted to http://www.ruby-forum.com/)

islet

unread,
Jul 18, 2008, 8:48:31 AM7/18/08
to soap4r
Hi leveret ,

am new to webservices in rails.

> I have generated a server and client from a wsdl using wsdl2ruby from
> the SOAP4R gem, and have got them working successfully over regular
> http.

i also created server and client files (4 files each) using these
commands
wsdl2ruby.rb –wsdl /home/Test.wsdl –type server –force
wsdl2ruby.rb –wsdl /home/Test.wsdl –type client –force

how can i use these files in a rails application? how can i reproduce
my Test.wsdl again in my browser?

Thanks in advance,

Vipin
Reply all
Reply to author
Forward
0 new messages