lib/sem4r_soap/soap_dumper.rb
# TODO: request_xml might be a doc object as Nokogiri::doc
request_xml might be a doc object as Nokogiri::doc
request_xml might be a doc object as Nokogiri :: doc
def dump_soap_request(service_url, request_xml)
      return unless @soap_dump
      %w{email password developerToken authToken clientEmail}.each do |tag|
        request_xml = request_xml.gsub(/<#{tag}([^>]*)>.*<\/#{tag}>/, "<#{tag}\\1>***censured***</#{tag}>")
      end
      str = ""
      str << "<!-- Post to '#{service_url}' -->\n"
      str << xml_to_s(request_xml) << "\n"
      dump(service_url, "req", str)
    end
def dump_soap_request ( service_url , request_xml ) return unless @soap_dump %w{ email password developerToken authToken clientEmail } . each do | tag | request_xml = request_xml . gsub ( / < #{ tag } ([^>]*)>.*< \/ #{ tag } > / , "<#{tag}\\1>***censured***</#{tag}>" ) end str = "" str << "<!-- Post to '#{service_url}' -->\n" str << xml_to_s ( request_xml ) << "\n" dump ( service_url , "req" , str ) end
TODO: request_xml might be a doc object as Nokogiri::doc
TODO : request_xml might be a doc object as Nokogiri :: doc
service_url
<not_specific>
request_xml
<not_specific>