Render error message from the app, instead of mod_epp

This commit is contained in:
Martin Lensment 2014-06-25 15:38:18 +03:00
parent 9f30ec3cc7
commit 8c1ea03f95
5 changed files with 26 additions and 5 deletions

View file

@ -0,0 +1,12 @@
xml.instruct!
xml.epp('xmlns' => 'urn:ietf:params:xml:ns:epp-1.0', 'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance', 'xsi:schemaLocation' => 'urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd') do
xml.response do
xml.result('code' => params[:code]) do
xml.msg(params[:msg], 'lang' => 'en')
end
end
xml.trID do
xml.clTRID params[:clTRID]
end
end