can anyone give me a simple code how to use soap4r with a mongrel
server. a client and server code.
I wanna use this concept in my application. this is new to me..
i have used this with webrick and its working fine.
i wan to go for mongrel.
sample code of my application is this
server:
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.52'',
6565)
trap(:INT) do
server.shutdown
end
server.start
client code:
s = SOAP::RPC::Driver.new(''http://192.168.1.52:6565/'',
''urn:hws'') #make connection with server
s.add_method("main_diagnoses","institution_id")
#adding method
@all_system_ids= s.main_diagnoses(institution_id)
thanks in advance
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---