lib/shapewear/request.rb in shapewear-0.0.5 vs lib/shapewear/request.rb in shapewear-0.0.6
- old
+ new
@@ -60,9 +60,22 @@
end
end
end
end
+ #noinspection RubyArgCount
def serialize_soap_fault(ex)
- raise ex
+ logger.debug "Serializing SOAP Fault: #{ex.inspect}"
+
+ xb = Builder::XmlMarkup.new
+ xb.instruct!
+
+ xb.Envelope :xmlns => namespaces['env'] do |xenv|
+ xenv.Body do |xbody|
+ xbody.Fault do |xf|
+ xf.faultcode e.class.name
+ xf.faultstring e.message
+ end
+ end
+ end
end
end