soap4r cannot access server application after soap server is started

I ve started soap r my application. it works fine. But i m not getting from were to start soap server :0( if i start it from controller then i m not able to access the server application. if i start from console then it works fine and also i can access server application. Please can anyone help me from where to start soap server?

currently my server side for starting soap server , code looks like this..

require 'soap/rpc/standaloneServer'

class SymptomCheckerServer < SOAP::RPC::StandaloneServer

def on_init     @log.level = Logger::Severity::DEBUG     suggest_diagnoses= SuggestDiagnosesController.new     add_method(suggest_diagnoses, 'main_diagnoses', 'params')   end end

server = SymptomCheckerServer.new('hws', 'urn:hws', '192.168.1.201', 6565) trap(:INT) do   server.shutdown end server.start

till now i was starting server from browser by accessing this controller. can anyone suggest me please

thanks in advance..