class Aws::Stubbing::Protocols::Query

def build_body(api, operation, data)

def build_body(api, operation, data)
  xml = []
  builder = Aws::Xml::DocBuilder.new(target: xml, indent: '  ')
  builder.node(operation.name + 'Response', xmlns: xmlns(api)) do
    if (rules = operation.output)
      rules.location_name = operation.name + 'Result'
      Xml::Builder.new(rules, target: xml, pad:'  ').to_xml(data)
    end
    builder.node('ResponseMetadata') do
      builder.node('RequestId', 'stubbed-request-id')
    end
  end
  xml.join
end