Class: Ruby2Soap

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby2soap.rb

Overview

Handle the requests to the service

Instance Method Summary collapse

Constructor Details

#initialize(service_url, save_cookeis = true) ⇒ Ruby2Soap

save_cookeis

should save cookies of the result



27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/ruby2soap.rb', line 27

def initialize(service_url,save_cookeis = true)
	HTTPI.log = false
	@cookies = []
	@save_cookeis = save_cookeis

	@uri = URI("#{service_url}")

	wsdl = WsdlParser.parse(service_url)
	@service_address = wsdl.location_address

	wsdl.actions.each do |action|
		define_wcf_action(action)
	end

	# maybe create class for each service and the function will be there
end

Instance Method Details

#cookiesObject

Return the the current cookie set



45
46
47
# File 'lib/ruby2soap.rb', line 45

def cookies
	@cookies
end