lib/aws/api/translator.rb
def apply_xml_namespaces(api)
        xmlns = api.metadata.delete('xmlnamespace')
        if xml?
          api.operations.values.each do |operation|
            if operation.input.payload
              operation.input.payload_member.metadata['xmlns_uri'] = xmlns
            elsif !operation.input.payload_member.members.empty?
              operation.input.serialized_name = operation.name + "Request"
              operation.input.metadata['xmlns_uri'] = xmlns
            end
          end
        end
      end
# XML services, like S3 require the proper XML namespace to be applied
# to the root element for each request.  This moves it from the API
# metadata into the operation input shape for each operation where
# the XML serializer can read it.
XML services, like S3 require the proper XML namespace to be applied
to the root element for each request.  This moves it from the API
metadata into the operation input shape for each operation where
the XML serializer can read it.
XML services like S3 require the proper XML namespace to be applied to the root element for each request . This moves it from the API metadata into the operation input shape for each operation where the XML serializer can read it .
def apply_xml_namespaces(api)
        xmlns = api.metadata.delete('xmlnamespace')
        if xml?
          api.operations.values.each do |operation|
            if operation.input.payload
              operation.input.payload_member.metadata['xmlns_uri'] = xmlns
            elsif !operation.input.payload_member.members.empty?
              operation.input.serialized_name = operation.name + "Request"
              operation.input.metadata['xmlns_uri'] = xmlns
            end
          end
        end
      end
def apply_xml_namespaces ( api ) xmlns = api . metadata . delete ( 'xmlnamespace' ) if xml? api . operations . values . each do | operation | if operation . input . payload operation . input . payload_member . metadata [ 'xmlns_uri' ] = xmlns elsif ! operation . input . payload_member . members . empty? operation . input . serialized_name = operation . name + "Request" operation . input . metadata [ 'xmlns_uri' ] = xmlns end end end end
XML services, like S3 require the proper XML namespace to be applied
to the root element for each request.
XML services like S3 require the proper XML namespace to be applied to the root element for each request .
api