Skip to content

Instantly share code, notes, and snippets.

@ecarnevale
Created July 27, 2011 15:07
Show Gist options
  • Save ecarnevale/1109563 to your computer and use it in GitHub Desktop.
Save ecarnevale/1109563 to your computer and use it in GitHub Desktop.
def create
soap_request = request.env['rack.input'].read
filename = "#{Time.now.iso8601(6)}_#{request.env['REMOTE_ADDR']}.txt"
File.open("#{Rails.root}/soap_requests/#{filename}", 'w') {|f| f.write(soap_request)}
Station.parse_xml(soap_request)
request.format = "soap"
render :layout => false
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment