= Apricot eats Gorilla Apricot eats Gorilla is a SOAP communication helper. It translates between SOAP response messages (XML) and Ruby Hashes and may be used to build a SOAP request envelope. It is based on CobraVsMongoose but uses Hpricot instead of REXML and doesn't follow the BadgerFish convention. == Install $ gem install smacks-apricoteatsgorilla -s http://gems.github.com == Dependencies hpricot 0.6.164 (also available for JRuby) == How to use === xml_to_hash(xml, root_node = nil) xml = ' secret example ' ApricotEatsGorilla[xml, "//return"] # => { :auth_value => { :token => "secret", :client => "example" } } === hash_to_xml(hash) hash = { :apricot => { :eats => "Gorilla" } } ApricotEatsGorilla[hash] # => "Gorilla" === soap_envelope(namespaces = {}) ApricotEatsGorilla.soap_envelope { "me" } # => ' # => # => me # => # => ' == More examples Please take a look at the tests for some more examples.