Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
SOAP::RPC::StandaloneServer failed in the thread
cyl
2/1/2008 2:27:00 AM
I wrote a simple soap server as below
NS = '
http://Test.com/...
class Server < SOAP::RPC::StandaloneServer
def on_init
t = TestClass.new
add_method(t, 'echo')
end
end
svr = Server.new('TEST',NS,'0.0.0.0',12321)
trap('INT') {svr.shutdown}
svr.start
it can run without problem. However if I run the same piece of code in
a thread, it will not work
Thread.new do
#same code here
end
#wait for the thread
I think the server does not start because the listening port I
specified is not occupied by any application. Does anyone know what
the problem is?
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
SOAP::RPC::StandaloneServer failed in the thread
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password