Class: CannedSoap::Client
- Inherits:
-
Object
- Object
- CannedSoap::Client
- Defined in:
- lib/canned_soap/client.rb
Instance Method Summary collapse
-
#cookies ⇒ Object
Return the the current cookie set.
-
#initialize(service_url, save_cookeis = true) ⇒ Client
constructor
C’tor.
Constructor Details
#initialize(service_url, save_cookeis = true) ⇒ Client
C’tor. Parse the wsdl and create a method to each WCF/WebService method Params:
service_url
-
the url of your service
save_cookeis
-
should save cookies of the result
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/canned_soap/client.rb', line 10 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 end |
Instance Method Details
#cookies ⇒ Object
Return the the current cookie set
26 27 28 |
# File 'lib/canned_soap/client.rb', line 26 def @cookies end |