Sha256: f053e5f61c7b2cf509111825f9771e537761257f8f8727d575d8711aea98f92b

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 KB

Contents

= 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)

== Translating an XML String into a Ruby Hash

  xml = "<apricot><eats>Gorilla</eats></apricot>"
  ApricotEatsGorilla[xml]
  # => { :eats => "Gorilla" }

== Translating a Ruby Hash into an XML String

  hash = { :apricot => { :eats => "Gorilla" } }
  ApricotEatsGorilla[hash]
  # => "<apricot><eats>Gorilla</eats></apricot>"

== Creating a SOAP request envelope

  ApricotEatsGorilla.soap_envelope { "<authenticate>me</authenticate>" }

  # => '<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
  # =>    <env:Body>
  # =>      <authenticate>me</authenticate>
  # =>    </env:Body>
  # =>  </env:Envelope>'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
smacks-apricoteatsgorilla-0.3.2 README.rdoc