class Aws::Stubbing::Protocols::EC2

def build_body(api, operation, data)

def build_body(api, operation, data)
  xml = []
  Xml::Builder.new(operation.output, target:xml).to_xml(data)
  xml.shift
  xml.pop
  xmlns = "http://ec2.amazonaws.com/doc/#{api.version}/".inspect
  xml.unshift("  <requestId>stubbed-request-id</requestId>")
  xml.unshift("<#{operation.name}Response xmlns=#{xmlns}>\n")
  xml.push("</#{operation.name}Response>\n")
  xml.join
end