Skip to content

Instantly share code, notes, and snippets.

@inossidabile
Created September 26, 2012 09:15
Show Gist options
  • Select an option

  • Save inossidabile/3786960 to your computer and use it in GitHub Desktop.

Select an option

Save inossidabile/3786960 to your computer and use it in GitHub Desktop.
class Fluffy < WashOut::Type
map :universe => {
:name => :string,
:age => :int
}
end
class FluffyContainer < WashOut::Type
type_name 'fluffy_con'
map :fluffy => :string
end
class FluffiesController < ApplicationController
include WashOut::SOAP
soap_action "i_to_s",
:args => FluffyContainer,
:return => :string
def integer_to_string
render :soap => params[:value].to_s
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment