Correctly formatted greeting and login responses

This commit is contained in:
Martin Lensment 2014-06-27 15:40:59 +03:00
parent 920e54cd28
commit bb3fc43261
2 changed files with 39 additions and 17 deletions

View file

@ -1,7 +1,9 @@
xml.instruct! 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.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.greeting do
xml.svID 'EPP server (DSDng)' xml.svID 'EPP server (DSDng)'
xml.svDate '2014-06-18T17:46:59+03:00' xml.svDate '2014-06-18T17:46:59+03:00'
xml.svcMenu do
xml.version '1.0' xml.version '1.0'
xml.lang 'en' xml.lang 'en'
xml.lang 'cs' xml.lang 'cs'
@ -13,3 +15,23 @@ xml.epp('xmlns' => 'urn:ietf:params:xml:ns:epp-1.0', 'xmlns:xsi' => 'http://www.
xml.extURI 'http://www.nic.cz/xml/epp/enumval-1.2' xml.extURI 'http://www.nic.cz/xml/epp/enumval-1.2'
end end
end end
xml.dcp do
xml.access do
xml.all
end
xml.statement do
xml.purpose do
xml.admin
xml.prov
end
xml.recipient do
xml.public
end
xml.retention do
xml.stated
end
end
end
end #greeting
end

View file

@ -2,11 +2,11 @@ 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.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.response do
xml.result('code' => '1000') do xml.result('code' => '1000') do
xml.msg('Command completed successfully', 'lang' => 'en') xml.msg 'Command completed successfully'
end end
end
xml.trID do xml.trID do
xml.clTRID params[:clTRID] xml.clTRID params[:clTRID]
xml.svTRID 'ccReg-0003012027'
end
end end
end end