xml.instruct! xml.tag! ‘soap:Envelope’, ‘xmlns:soap’ => ‘schemas.xmlsoap.org/soap/envelope/’,

    'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance' do
xml.tag! 'soap:Body' do
  xml.tag! 'soap:Fault', :encodingStyle => 'http://schemas.xmlsoap.org/soap/encoding/' do
    xml.faultcode 'Client'
    xml.faultstring e.message
  end
end

end