class AWS::Core::RESTXMLClient

@since 1.8.0

def self.request_builder_for api_config, operation

def self.request_builder_for api_config, operation
  RESTRequestBuilder.new(operation,
    :format => :xml,
    :xmlnamespace => api_config[:namespace])
end

def self.response_parser_for api_config, operation

def self.response_parser_for api_config, operation
  RESTResponseParser.new(operation, :format => :xml)
end

def extract_error_details response

def extract_error_details response
  if
    response.http_response.status >= 300 and
    body = response.http_response.body and
    error = errors_module::GRAMMAR.parse(body) and
    error[:code]
  then
    [error[:code], error[:message]]
  end
end