0
我使用SOAP RPC LIB連接1客戶端1服務器(在不同的PC在同一網絡上)Ruby SOAP XML-RPC調用非常慢!
服務器:
require "soap/rpc/standaloneServer"
...
class SyncServer < SOAP::RPC::StandaloneServer
def initialize(*args)
super
add_method(self, 'remote_method')
end
end
在客戶端
:
driver = SOAP::RPC::Driverha.new('http://' + ADDRESS + ':' + PORT, 'urn:soap_string')
driver.add_method('remote_method')
remote_method的調用非常有效,但需要很長時間:超過10秒!
你對這種緩慢的原因有什麼想法嗎?
我試圖在同一臺PC上Exec的客戶端和服務器(安裝Linux操作系統Ubuntu),但具有相同的結果(太多秒)
任何建議將受到歡迎:)
謝謝 Alessandro DS