savonrb / savon-multipart

Heavy metal Ruby SOAP client with multipart support
MIT License
17 stars 47 forks source link

Savon::SOAP::Fault doesn't support multipart #3

Open ebeigarts opened 12 years ago

ebeigarts commented 12 years ago

Currently I am using this workaround, but I think there should be a better way to fix this.

module Savon
  module SOAP
    class Response
      def soap_fault
        @soap_fault ||= Fault.new(HTTPI::Response.new(http.code, http.headers, to_xml))
      end
    end
  end
end